mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 07:38:10 +02:00
radv: skip draw calls with 0-sized index buffers
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
This commit is contained in:
parent
fed6aa2fec
commit
29cca5f381
1 changed files with 6 additions and 0 deletions
|
|
@ -4323,6 +4323,12 @@ radv_emit_draw_packets(struct radv_cmd_buffer *cmd_buffer,
|
|||
int index_size = radv_get_vgt_index_size(state->index_type);
|
||||
uint64_t index_va;
|
||||
|
||||
/* Skip draw calls with 0-sized index buffers. They
|
||||
* cause a hang on some chips, like Navi10-14.
|
||||
*/
|
||||
if (!cmd_buffer->state.max_index_count)
|
||||
return;
|
||||
|
||||
index_va = state->index_va;
|
||||
index_va += info->first_index * index_size;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue