zink: stop sanitizing primitive_restart flag in draw info

this is a 1bit struct member, sanitizing is pointless

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11408>
This commit is contained in:
Mike Blumenkrantz 2021-05-11 13:50:14 -04:00 committed by Marge Bot
parent 38119e4e7d
commit b14b1bef5d
1 changed files with 2 additions and 2 deletions

View File

@ -445,9 +445,9 @@ zink_draw_vbo(struct pipe_context *pctx,
ctx->gfx_prim_mode = dinfo->mode;
update_gfx_program(ctx);
if (ctx->gfx_pipeline_state.primitive_restart != !!dinfo->primitive_restart)
if (ctx->gfx_pipeline_state.primitive_restart != dinfo->primitive_restart)
ctx->gfx_pipeline_state.dirty = true;
ctx->gfx_pipeline_state.primitive_restart = !!dinfo->primitive_restart;
ctx->gfx_pipeline_state.primitive_restart = dinfo->primitive_restart;
enum pipe_prim_type reduced_prim = u_reduced_prim(dinfo->mode);