From: Chris Wilson Date: Fri, 8 Jun 2018 21:16:59 +0000 (+0100) Subject: iris: IndexFormat = size/2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2cbd42cddd410b41ccddd009f8ce83a55130d152;p=mesa.git iris: IndexFormat = size/2 brw uses: IndexFormat = index_size >> 1 anv uses: IndexFromat = index_type[index_size] --- 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);