zink: drop mode_changed check from linewidth/depthbias draw updates
this doesn't need to be updated on primtype change since it's always
set
cc: mesa-stable
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17775>
(cherry picked from commit a912952c3e
)
This commit is contained in:

committed by
Dylan Baker

parent
71b113251d
commit
fdbabb07cf
@@ -499,7 +499,7 @@
|
|||||||
"description": "zink: drop mode_changed check from linewidth/depthbias draw updates",
|
"description": "zink: drop mode_changed check from linewidth/depthbias draw updates",
|
||||||
"nominated": true,
|
"nominated": true,
|
||||||
"nomination_type": 0,
|
"nomination_type": 0,
|
||||||
"resolution": 0,
|
"resolution": 1,
|
||||||
"main_sha": null,
|
"main_sha": null,
|
||||||
"because_sha": null
|
"because_sha": null
|
||||||
},
|
},
|
||||||
|
@@ -675,7 +675,7 @@ zink_draw(struct pipe_context *pctx,
|
|||||||
screen->info.have_EXT_line_rasterization && rast_state->base.line_stipple_enable)
|
screen->info.have_EXT_line_rasterization && rast_state->base.line_stipple_enable)
|
||||||
VKCTX(CmdSetLineStippleEXT)(batch->state->cmdbuf, rast_state->base.line_stipple_factor, rast_state->base.line_stipple_pattern);
|
VKCTX(CmdSetLineStippleEXT)(batch->state->cmdbuf, rast_state->base.line_stipple_factor, rast_state->base.line_stipple_pattern);
|
||||||
|
|
||||||
if (BATCH_CHANGED || ctx->rast_state_changed || mode_changed) {
|
if (BATCH_CHANGED || ctx->rast_state_changed) {
|
||||||
enum pipe_prim_type reduced_prim = ctx->last_vertex_stage->reduced_prim;
|
enum pipe_prim_type reduced_prim = ctx->last_vertex_stage->reduced_prim;
|
||||||
if (reduced_prim == PIPE_PRIM_MAX)
|
if (reduced_prim == PIPE_PRIM_MAX)
|
||||||
reduced_prim = u_reduced_prim(mode);
|
reduced_prim = u_reduced_prim(mode);
|
||||||
|
Reference in New Issue
Block a user