u/draw: skip zero-sized indirect draws
cc: mesa-stable Acked-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24631>
This commit is contained in:
committed by
Marge Bot
parent
efb80c1715
commit
581f6fb7c8
@@ -223,6 +223,9 @@ util_draw_indirect(struct pipe_context *pipe,
|
||||
pipe_buffer_unmap(pipe, dc_transfer);
|
||||
}
|
||||
|
||||
if (!draw_count)
|
||||
return;
|
||||
|
||||
if (indirect->stride)
|
||||
num_params = MIN2(indirect->stride / 4, num_params);
|
||||
params = (uint32_t *)
|
||||
|
||||
Reference in New Issue
Block a user