From: Samuel Pitoiset Date: Fri, 23 Aug 2019 07:23:21 +0000 (+0200) Subject: radv: fix getting the index type size for uint8_t X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=89671ef205fa93d391e01884da48a876847a5682;p=mesa.git 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 Reviewed-by: Bas Nieuwenhuizen 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);