Mesa (master): gallivm: convert packing to uint64 not double
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Mar 16 23:36:51 UTC 2021
Module: Mesa
Branch: master
Commit: c16f63b3430eb2dfda0d5f8518d62554394ce22e
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c16f63b3430eb2dfda0d5f8518d62554394ce22e
Author: Dave Airlie <airlied at redhat.com>
Date: Tue Mar 16 11:14:15 2021 +1000
gallivm: convert packing to uint64 not double
Fixes some issues with later inttopotr casting.
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9616>
---
src/gallium/auxiliary/gallivm/lp_bld_nir.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_nir.c b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
index c02970f0aab..f637f11eaf1 100644
--- a/src/gallium/auxiliary/gallivm/lp_bld_nir.c
+++ b/src/gallium/auxiliary/gallivm/lp_bld_nir.c
@@ -877,7 +877,7 @@ static LLVMValueRef do_alu_action(struct lp_build_nir_context *bld_base,
break;
case nir_op_pack_64_2x32_split: {
LLVMValueRef tmp = merge_64bit(bld_base, src[0], src[1]);
- result = LLVMBuildBitCast(builder, tmp, bld_base->dbl_bld.vec_type, "");
+ result = LLVMBuildBitCast(builder, tmp, bld_base->uint64_bld.vec_type, "");
break;
}
case nir_op_u2f32:
More information about the mesa-commit
mailing list