From 2cbd42cddd410b41ccddd009f8ce83a55130d152 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Fri, 8 Jun 2018 22:16:59 +0100 Subject: [PATCH] iris: IndexFormat = size/2 brw uses: IndexFormat = index_size >> 1 anv uses: IndexFromat = index_type[index_size] --- src/gallium/drivers/iris/iris_state.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_state.c b/src/gallium/drivers/iris/iris_state.c index dcf5c62f9a8..0f420d1d566 100644 --- a/src/gallium/drivers/iris/iris_state.c +++ b/src/gallium/drivers/iris/iris_state.c @@ -2511,7 +2511,7 @@ iris_upload_render_state(struct iris_context *ice, assert(!draw->has_user_indices); iris_emit_cmd(batch, GENX(3DSTATE_INDEX_BUFFER), ib) { - ib.IndexFormat = draw->index_size; + ib.IndexFormat = draw->index_size >> 1; ib.MOCS = MOCS_WB; ib.BufferSize = res->bo->size; ib.BufferStartingAddress = ro_bo(res->bo, 0); -- 2.30.2