From b7de64c46cc76abea99ec3fbe80d6b29a0645b56 Mon Sep 17 00:00:00 2001 From: Brian Date: Fri, 24 Aug 2007 18:06:11 -0600 Subject: [PATCH] set I915_NEW_VERTEX_FORMAT in calculate_vertex_layout(), fixes demos/texenv --- src/mesa/pipe/i915simple/i915_state_derived.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/pipe/i915simple/i915_state_derived.c b/src/mesa/pipe/i915simple/i915_state_derived.c index bab3015fdeb..b1ea4f86c6b 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; } -- 2.30.2