summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/i915simple/i915_state_derived.c
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-08-24 18:06:11 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-08-24 18:08:23 -0600
commitb7de64c46cc76abea99ec3fbe80d6b29a0645b56 (patch)
tree33f4f26c0872ad1077a895748920238a85715efa /src/mesa/pipe/i915simple/i915_state_derived.c
parent59e7bfa1de77ab03ca174bdf82fe33ab36050ce7 (diff)
set I915_NEW_VERTEX_FORMAT in calculate_vertex_layout(), fixes demos/texenv
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_state_derived.c')
-rw-r--r--src/mesa/pipe/i915simple/i915_state_derived.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state_derived.c b/src/mesa/pipe/i915simple/i915_state_derived.c
index bab3015fde..b1ea4f86c6 100644
--- a/src/mesa/pipe/i915simple/i915_state_derived.c
+++ b/src/mesa/pipe/i915simple/i915_state_derived.c
@@ -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;
}