mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
zink: reject invalid draws
cc: mesa-stable Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14859>
This commit is contained in:
parent
e38c13830f
commit
b656ab75a6
1 changed files with 3 additions and 0 deletions
|
|
@ -487,6 +487,9 @@ zink_draw(struct pipe_context *pctx,
|
|||
struct pipe_vertex_state *vstate,
|
||||
uint32_t partial_velem_mask)
|
||||
{
|
||||
if (!dindirect && (!draws[0].count || !dinfo->instance_count))
|
||||
return;
|
||||
|
||||
struct zink_context *ctx = zink_context(pctx);
|
||||
struct zink_screen *screen = zink_screen(pctx->screen);
|
||||
struct zink_rasterizer_state *rast_state = ctx->rast_state;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue