gallivm: fix missing cast in 4-bit blending paths.

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>
This commit is contained in:
Dave Airlie
2022-02-11 09:42:40 +10:00
committed by Marge Bot
parent b7f1f5c77d
commit cb296047f2
@@ -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;
}