fix off-by-one in load_state_immediate

This commit is contained in:
Keith Whitwell
2007-03-18 20:13:06 +00:00
parent c9e39aeaef
commit 77544d7b7d
2 changed files with 2 additions and 2 deletions
+1 -1
View 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;
+1 -1
View 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 */