aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2018-06-08 22:16:59 +0100
committerKenneth Graunke <[email protected]>2019-02-21 10:26:06 -0800
commit2cbd42cddd410b41ccddd009f8ce83a55130d152 (patch)
treebf9248f1f6314394188f922323fb29727bda0fc5
parent5dcf62bb4344ab5276f252c07342a66b78f1d6fe (diff)
iris: IndexFormat = size/2
brw uses: IndexFormat = index_size >> 1 anv uses: IndexFromat = index_type[index_size]
-rw-r--r--src/gallium/drivers/iris/iris_state.c2
1 files changed, 1 insertions, 1 deletions
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);