have to check I915_HW_SAMPLER when emitting MAP state, because of sampler_enable_flags.
authorkeithw <keithw@keithw-laptop.(none)>
Fri, 24 Aug 2007 09:15:06 +0000 (10:15 +0100)
committerKeith Whitwell <keith@tungstengraphics.com>
Fri, 24 Aug 2007 10:25:07 +0000 (11:25 +0100)
src/mesa/pipe/i915simple/i915_state_emit.c

index 48eb86091d1448f5785e3acd4c039ff6841314f0..4804b0caee327cff562647ccbd3ab803d1cd1cd7 100644 (file)
@@ -192,8 +192,14 @@ i915_emit_hardware_state(struct i915_context *i915 )
 
 #if 01
       /* texture images */
-      if (i915->hardware_dirty & I915_HW_MAP)
+      if (i915->hardware_dirty & (I915_HW_MAP | I915_HW_SAMPLER))
       {
+        /* XXX: we were refering to sampler state
+         * (current.sampler_enable_nr) below, but only checking
+         * I915_HW_MAP above.  Should probably calculate the enabled
+         * flags separately - but there will be further rework of
+         * state so perhaps not necessary yet.
+         */
          const uint nr = i915->current.sampler_enable_nr;
          if (nr) {
             const uint enabled = i915->current.sampler_enable_flags;