Fix off by one error in immediate state packet size.
authorKeith Whitwell <keith@tungstengraphics.com>
Thu, 15 Mar 2007 10:27:47 +0000 (10:27 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Thu, 15 Mar 2007 10:29:38 +0000 (10:29 +0000)
src/mesa/drivers/dri/i915tex/i915_state.c

index 78ae4bdb5fcd2dcadea80b19dfe8055ea7f70e5d..1fafadced020ea36be40e4273e860aafed11c2b6 100644 (file)
@@ -859,7 +859,7 @@ i915_init_packets(struct i915_context *i915)
       i915->state.Ctx[I915_CTXREG_LI] = (_3DSTATE_LOAD_STATE_IMMEDIATE_1 |
                                          I1_LOAD_S(2) |
                                          I1_LOAD_S(4) |
-                                         I1_LOAD_S(5) | I1_LOAD_S(6) | (4));
+                                         I1_LOAD_S(5) | I1_LOAD_S(6) | (3));
       i915->state.Ctx[I915_CTXREG_LIS2] = 0;
       i915->state.Ctx[I915_CTXREG_LIS4] = 0;
       i915->state.Ctx[I915_CTXREG_LIS5] = 0;