diff options
author | Marek Olšák <[email protected]> | 2020-03-03 15:03:28 -0500 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2020-03-04 19:54:43 -0500 |
commit | 450152f8d85f9f54498ea5116561f2aefe7378dc (patch) | |
tree | 942ee64ee9a18e556fa57340d09673bd074c76ab /src/mesa/drivers/dri/i965/genX_state_upload.c | |
parent | df3891e74a72d275aceba91adc94a9e7dc9aa029 (diff) |
mesa: remove _mesa_index_buffer::index_size in favor of index_size_shift
Reviewed-by: Ian Romanick <[email protected]>
Suggested-by: Ian Romanick <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4052>
Diffstat (limited to 'src/mesa/drivers/dri/i965/genX_state_upload.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/genX_state_upload.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/genX_state_upload.c b/src/mesa/drivers/dri/i965/genX_state_upload.c index d617b78dc63..635d314ef2b 100644 --- a/src/mesa/drivers/dri/i965/genX_state_upload.c +++ b/src/mesa/drivers/dri/i965/genX_state_upload.c @@ -868,7 +868,7 @@ genX(emit_index_buffer)(struct brw_context *brw) assert(brw->ib.enable_cut_index == brw->prim_restart.enable_cut_index); ib.CutIndexEnable = brw->ib.enable_cut_index; #endif - ib.IndexFormat = brw_get_index_type(index_buffer->index_size); + ib.IndexFormat = brw_get_index_type(1 << index_buffer->index_size_shift); /* The VF cache designers apparently cut corners, and made the cache * only consider the bottom 32 bits of memory addresses. If you happen |