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:
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user