diff options
author | Kenneth Graunke <[email protected]> | 2013-02-10 16:55:19 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2013-02-12 20:24:28 -0800 |
commit | 8cabe26f5dc4c66ae59649cfd7b25f761cda250b (patch) | |
tree | c0a2bb95539f82f56d528d50e3643234e32c9aa3 /src/mesa/drivers | |
parent | ea63491629f48099371f725e7c3779f2982d7a52 (diff) |
i965: Use derived state for Haswell's 3DSTATE_VF packet.
Otherwise, we fail to correctly handle GL_PRIMITIVE_RESTART_FIXED_INDEX.
Fixes gles3conform's primitive_restart_mode test.
NOTE: This is a candidate for the 9.1 branch.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_primitive_restart.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_primitive_restart.c b/src/mesa/drivers/dri/i965/brw_primitive_restart.c index 8c7219d4f92..e6902b485c6 100644 --- a/src/mesa/drivers/dri/i965/brw_primitive_restart.c +++ b/src/mesa/drivers/dri/i965/brw_primitive_restart.c @@ -196,11 +196,11 @@ haswell_upload_cut_index(struct brw_context *brw) return; const unsigned cut_index_setting = - ctx->Array.PrimitiveRestart ? HSW_CUT_INDEX_ENABLE : 0; + ctx->Array._PrimitiveRestart ? HSW_CUT_INDEX_ENABLE : 0; BEGIN_BATCH(2); OUT_BATCH(_3DSTATE_VF << 16 | cut_index_setting | (2 - 2)); - OUT_BATCH(ctx->Array.RestartIndex); + OUT_BATCH(ctx->Array._RestartIndex); ADVANCE_BATCH(); } |