diff options
author | Kenneth Graunke <[email protected]> | 2012-01-08 16:27:36 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-01-09 21:45:11 -0800 |
commit | a48cc138a8b7c55f8d12796677e081c2b2085f48 (patch) | |
tree | 5f0c2d39c5d0fffde276e48f3dc10f7770936402 /src | |
parent | 7cb40da7a55e8f81f4e2138845087eb1e0310bc1 (diff) |
i965: Fix zeroing of unused attributes in 3DSTATE_SBE.
This brings the code in sync with gen6_sf_state.c; presumably the
mistake was a botched rebase on initial Ivybridge bring-up patches.
Found by diffing batch buffer dumps and noticing the random values.
Thanks to Eric for catching the obvious mistake.
NOTE: This is a candidate for the 7.11 branch.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen7_sf_state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/gen7_sf_state.c b/src/mesa/drivers/dri/i965/gen7_sf_state.c index 90853181009..c4cacf095ed 100644 --- a/src/mesa/drivers/dri/i965/gen7_sf_state.c +++ b/src/mesa/drivers/dri/i965/gen7_sf_state.c @@ -111,8 +111,8 @@ upload_sbe_state(struct brw_context *brw) ctx->VertexProgram._TwoSideEnabled); } - for (; attr < FRAG_ATTRIB_MAX; attr++) - attr_overrides[input_index++] = 0; + for (; input_index < FRAG_ATTRIB_MAX; input_index++) + attr_overrides[input_index] = 0; BEGIN_BATCH(14); OUT_BATCH(_3DSTATE_SBE << 16 | (14 - 2)); |