set I915_NEW_VERTEX_FORMAT in calculate_vertex_layout(), fixes demos/texenv
authorBrian <brian.paul@tungstengraphics.com>
Sat, 25 Aug 2007 00:06:11 +0000 (18:06 -0600)
committerBrian <brian.paul@tungstengraphics.com>
Sat, 25 Aug 2007 00:08:23 +0000 (18:08 -0600)
src/mesa/pipe/i915simple/i915_state_derived.c

index bab3015fdeb1aaceb9e08d3470764df8a84371a8..b1ea4f86c6b736cc0585e36e8a3556cd431e695e 100644 (file)
@@ -161,6 +161,12 @@ static void calculate_vertex_layout( struct i915_context *i915 )
    draw_set_vertex_attributes( i915->draw,
                                vinfo->slot_to_attrib,
                               vinfo->num_attribs);
+
+   /* Need to set this flag so that the LIS2/4 registers get set.
+    * It also means the i915_update_immediate() function must be called
+    * after this one, in i915_update_derived().
+    */
+   i915->dirty |= I915_NEW_VERTEX_FORMAT;
 }