fix off-by-one in load_state_immediate
authorKeith Whitwell <keith@tungstengraphics.com>
Sun, 18 Mar 2007 20:13:06 +0000 (20:13 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Sun, 18 Mar 2007 20:13:45 +0000 (20:13 +0000)
src/mesa/drivers/dri/i915/i915_state.c
src/mesa/drivers/dri/i915/i915_vtbl.c

index fd11e10652e22dd8d4d4049312c4ed8b5b3ff354..5e00e6597b055189b59a25c40d0ab8bd05a25b12 100644 (file)
@@ -813,7 +813,7 @@ static void i915_init_packets( i915ContextPtr i915 )
                                       I1_LOAD_S(4) |
                                       I1_LOAD_S(5) |
                                       I1_LOAD_S(6) | 
-                                      (4));
+                                      (3));
       i915->state.Ctx[I915_CTXREG_LIS2] = 0;
       i915->state.Ctx[I915_CTXREG_LIS4] = 0;
       i915->state.Ctx[I915_CTXREG_LIS5] = 0;
index 2936a0fb721ac7eefa403e40353dd7e9c5b93d28..b533e153beb03f7eb0283f9603a54df63eec23a3 100644 (file)
@@ -180,7 +180,7 @@ static void i915_emit_invarient_state( intelContextPtr intel )
     */
    OUT_BATCH(_3DSTATE_LOAD_STATE_IMMEDIATE_1 | 
             I1_LOAD_S(3) |
-            (1));
+            (0));
    OUT_BATCH(0);
  
    /* XXX: Use this */