mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-09 10:30:13 +01:00
mesa: only emit _NEW_MULTISAMPLE when min sample shading changes
We usually check that given parameters are different before updating the state. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
af9e537be3
commit
11c6aab239
1 changed files with 6 additions and 3 deletions
|
|
@ -140,10 +140,13 @@ _mesa_MinSampleShading(GLclampf value)
|
|||
return;
|
||||
}
|
||||
|
||||
FLUSH_VERTICES(ctx, 0);
|
||||
value = CLAMP(value, 0.0f, 1.0f);
|
||||
|
||||
ctx->Multisample.MinSampleShadingValue = CLAMP(value, 0.0f, 1.0f);
|
||||
ctx->NewState |= _NEW_MULTISAMPLE;
|
||||
if (ctx->Multisample.MinSampleShadingValue == value)
|
||||
return;
|
||||
|
||||
FLUSH_VERTICES(ctx, _NEW_MULTISAMPLE);
|
||||
ctx->Multisample.MinSampleShadingValue = value;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue