radv: make attrib_end variable in radv_flush_vertex_descriptors 32-bit

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Fixes: 1e9dc0474e ("radv: make radv_pipeline::attrib_ends 32bit")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11089>
This commit is contained in:
Rhys Perry 2021-05-31 15:35:03 +01:00 committed by Marge Bot
parent 8d0c76b143
commit 0f8fef1261

View file

@ -2874,7 +2874,7 @@ radv_flush_vertex_descriptors(struct radv_cmd_buffer *cmd_buffer, bool pipeline_
enum chip_class chip = cmd_buffer->device->physical_device->rad_info.chip_class;
if (pipeline->use_per_attribute_vb_descs) {
uint16_t attrib_end = pipeline->attrib_ends[i];
uint32_t attrib_end = pipeline->attrib_ends[i];
if (num_records < attrib_end)
num_records = 0; /* not enough space for one vertex */