mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-30 21:21:39 +02:00
etnaviv: Use SATURATE
Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com> Reviewed-by: Eric Engestrom <eric@engestrom.ch> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5100>
This commit is contained in:
parent
bb5e10af24
commit
9e53562980
1 changed files with 1 additions and 1 deletions
|
|
@ -98,7 +98,7 @@ etna_zsa_state_create(struct pipe_context *pctx,
|
|||
uint32_t extra_reference = 0;
|
||||
|
||||
if (VIV_FEATURE(screen, chipMinorFeatures1, HALF_FLOAT))
|
||||
extra_reference = util_float_to_half(CLAMP(so->alpha.ref_value, 0.0f, 1.0f));
|
||||
extra_reference = util_float_to_half(SATURATE(so->alpha.ref_value));
|
||||
|
||||
cs->PE_STENCIL_CONFIG_EXT =
|
||||
VIVS_PE_STENCIL_CONFIG_EXT_EXTRA_ALPHA_REF(extra_reference);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue