i965: Add missing MOCS setup for 3DSTATE_INDEX_BUFFER on Broadwell.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 14 Jun 2014 08:43:26 +0000 (01:43 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Sun, 15 Jun 2014 23:51:05 +0000 (16:51 -0700)
Somehow I missed this when adding all of the other MOCS values.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Cc: "10.2" <mesa-stable@lists.freedesktop.org>
src/mesa/drivers/dri/i965/gen8_draw_upload.c

index 0272892d51973b67d606ec37edbc4ecdd536dd90..05a9c06182720fe877ddd62d41b53a069dc19a88 100644 (file)
@@ -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();