mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
zink: don't set gfx_pipeline_state.dirty if min_samples didn't change
This helps reduce the upcoming pipeline check conditions. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39381>
This commit is contained in:
parent
f2273866b1
commit
7103457acb
1 changed files with 2 additions and 0 deletions
|
|
@ -4206,6 +4206,8 @@ static void
|
|||
zink_set_min_samples(struct pipe_context *pctx, unsigned min_samples)
|
||||
{
|
||||
struct zink_context *ctx = zink_context(pctx);
|
||||
if (ctx->gfx_pipeline_state.min_samples == (min_samples - 1))
|
||||
return;
|
||||
ctx->gfx_pipeline_state.min_samples = min_samples - 1;
|
||||
ctx->gfx_pipeline_state.dirty = ctx->gfx_pipeline_state.mesh_dirty = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue