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:
b7f1f5c
)
gallivm: fix missing cast in 4-bit blending paths.
author
Dave Airlie
<airlied@redhat.com>
Thu, 10 Feb 2022 23:42:40 +0000
(09:42 +1000)
committer
Marge Bot
<emma+marge@anholt.net>
Tue, 15 Feb 2022 04:09:33 +0000
(
04:09
+0000)
This got noticed on an llvm debug build.
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14987>
src/gallium/drivers/llvmpipe/lp_state_fs.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_state_fs.c
b/src/gallium/drivers/llvmpipe/lp_state_fs.c
index
e775047
..
73b59ca
100644
(file)
--- a/
src/gallium/drivers/llvmpipe/lp_state_fs.c
+++ b/
src/gallium/drivers/llvmpipe/lp_state_fs.c
@@
-1700,6
+1700,7
@@
scale_bits(struct gallivm_state *gallivm,
result = lp_build_unsigned_norm_to_float(gallivm, src_bits, flt_type, src);
result = lp_build_clamped_float_to_unsigned_norm(gallivm, flt_type, dst_bits, result);
+ result = LLVMBuildTrunc(gallivm->builder, result, lp_build_int_vec_type(gallivm, src_type), "");
return result;
}