mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-31 22:50:08 +01:00
iris: IndexFormat = size/2
brw uses: IndexFormat = index_size >> 1 anv uses: IndexFromat = index_type[index_size]
This commit is contained in:
parent
5dcf62bb43
commit
2cbd42cddd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue