diff options
author | Kenneth Graunke <[email protected]> | 2014-06-14 01:43:26 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2014-06-15 16:51:05 -0700 |
commit | 7f256c1c705e74d626a668bdfc2b281167a957c2 (patch) | |
tree | c7526d70f70eb7f7c1f9d84d2241d3898c691470 /src | |
parent | d0575d98fc595dcc17706dc73d1eb461027ca17a (diff) |
i965: Add missing MOCS setup for 3DSTATE_INDEX_BUFFER on Broadwell.
Somehow I missed this when adding all of the other MOCS values.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Matt Turner <[email protected]>
Cc: "10.2" <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | src/mesa/drivers/dri/i965/gen8_draw_upload.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mesa/drivers/dri/i965/gen8_draw_upload.c b/src/mesa/drivers/dri/i965/gen8_draw_upload.c index 0272892d519..05a9c061827 100644 --- a/src/mesa/drivers/dri/i965/gen8_draw_upload.c +++ b/src/mesa/drivers/dri/i965/gen8_draw_upload.c @@ -213,11 +213,9 @@ gen8_emit_index_buffer(struct brw_context *brw) if (index_buffer == NULL) return; - perf_debug("Missing MOCS setup for 3DSTATE_INDEX_BUFFER."); - BEGIN_BATCH(5); OUT_BATCH(CMD_INDEX_BUFFER << 16 | (5 - 2)); - OUT_BATCH(brw_get_index_type(index_buffer->type) << 8); + OUT_BATCH(brw_get_index_type(index_buffer->type) << 8 | BDW_MOCS_WB); OUT_RELOC64(brw->ib.bo, I915_GEM_DOMAIN_VERTEX, 0, 0); OUT_BATCH(brw->ib.bo->size); ADVANCE_BATCH(); |