projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eda3e7f
)
pan/lower_framebuffer: Use fmul_imm
author
Alyssa Rosenzweig
<alyssa@collabora.com>
Tue, 15 Jun 2021 16:26:49 +0000
(12:26 -0400)
committer
Marge Bot
<eric+marge@anholt.net>
Mon, 23 Aug 2021 20:54:33 +0000
(20:54 +0000)
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11383>
src/panfrost/util/pan_lower_framebuffer.c
patch
|
blob
|
history
diff --git
a/src/panfrost/util/pan_lower_framebuffer.c
b/src/panfrost/util/pan_lower_framebuffer.c
index
702f872
..
b3758ea
100644
(file)
--- a/
src/panfrost/util/pan_lower_framebuffer.c
+++ b/
src/panfrost/util/pan_lower_framebuffer.c
@@
-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