diff options
author | Samuel Pitoiset <[email protected]> | 2019-08-23 09:23:21 +0200 |
---|---|---|
committer | Dylan Baker <[email protected]> | 2019-09-04 11:55:09 -0700 |
commit | 80514527e51adbd4c0e276e7e882e264ad6f2a54 (patch) | |
tree | 975003b800241faf8c51b8e0037cd8e29440ee8d /src/amd/vulkan | |
parent | 7d8eee2bdb107356d09946816957e1035fe49657 (diff) |
radv: fix getting the index type size for uint8_t
16-bit and 32-bit values match hardware values but 8-bit doesn't.
This fixes dEQP-VK.pipeline.input_assembly.* with 8-bit index.
Fixes: 372c3dcfdb8 ("radv: implement VK_EXT_index_type_uint8")
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]
(cherry picked from commit 89671ef205fa93d391e01884da48a876847a5682)
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 187e8c5c252..952f5e7d54c 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -3321,7 +3321,7 @@ void radv_CmdBindIndexBuffer( cmd_buffer->state.index_va = radv_buffer_get_va(index_buffer->bo); cmd_buffer->state.index_va += index_buffer->offset + offset; - int index_size = radv_get_vgt_index_size(indexType); + int index_size = radv_get_vgt_index_size(vk_to_index_type(indexType)); cmd_buffer->state.max_index_count = (index_buffer->size - offset) / index_size; cmd_buffer->state.dirty |= RADV_CMD_DIRTY_INDEX_BUFFER; radv_cs_add_buffer(cmd_buffer->device->ws, cmd_buffer->cs, index_buffer->bo); |