summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-31 11:27:16 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-31 11:27:16 -0600
commit2e21058e3d2c484b282cbc0bb5e7169b9a8d4fc7 (patch)
tree240d5bbd4a45a98e19d104f62e7e3a687209ca1e /src/mesa/pipe/i915simple
parent898d68a3762f84f0d435cda2f6aafddd356d1788 (diff)
Define attrib_format and interp_mode enum typedefs and use where appropriate.
Diffstat (limited to 'src/mesa/pipe/i915simple')
-rw-r--r--src/mesa/pipe/i915simple/i915_state_derived.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state_derived.c b/src/mesa/pipe/i915simple/i915_state_derived.c
index 4347dadbd0..792bb93b17 100644
--- a/src/mesa/pipe/i915simple/i915_state_derived.c
+++ b/src/mesa/pipe/i915simple/i915_state_derived.c
@@ -42,8 +42,8 @@
*/
static void calculate_vertex_layout( struct i915_context *i915 )
{
- const unsigned inputsRead = i915->fs.inputs_read;
- const uint colorInterp
+ const uint inputsRead = i915->fs.inputs_read;
+ const interp_mode colorInterp
= i915->setup.flatshade ? INTERP_CONSTANT : INTERP_LINEAR;
struct vertex_info *vinfo = &i915->current.vertex_info;
uint front0 = 0, back0 = 0, front1 = 0, back1 = 0;