mirror of
https://gitee.com/openharmony/third_party_mesa3d
synced 2024-11-23 15:30:09 +00:00
pan/lower_framebuffer: Use fmul_imm
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11383>
This commit is contained in:
parent
eda3e7f32c
commit
851620562a
@ -226,8 +226,8 @@ static nir_ssa_def *
|
||||
pan_pack_unorm_8(nir_builder *b, nir_ssa_def *v)
|
||||
{
|
||||
return pan_replicate_4(b, nir_pack_32_4x8(b,
|
||||
nir_f2u8(b, nir_fround_even(b, nir_fmul(b, nir_fsat(b,
|
||||
nir_pad_vec4(b, v)), nir_imm_float16(b, 255.0))))));
|
||||
nir_f2u8(b, nir_fround_even(b, nir_fmul_imm(b, nir_fsat(b,
|
||||
nir_pad_vec4(b, v)), 255.0)))));
|
||||
}
|
||||
|
||||
/* UNORM 4 is also unpacked to f16, which prevents us from using the shared
|
||||
|
Loading…
Reference in New Issue
Block a user