Mesa (master): ac/llvm: fix ac_to_integer_type() for 32-bit const addr space pointers

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Oct 21 20:53:58 UTC 2019


Module: Mesa
Branch: master
Commit: 39760793b56175e76bca7566992150e4e437a6d9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=39760793b56175e76bca7566992150e4e437a6d9

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Mon Oct 21 14:11:47 2019 +0200

ac/llvm: fix ac_to_integer_type() for 32-bit const addr space pointers

This fixes some crashes with dEQP-VK.descriptor_indexing.* when
read_first_invocation has its source from a descriptor.

Most of these tests still fail because of an LLVM bug (they work
with ACO).

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Bas Nieuwenhuizen <bas at basnieuwenhuizen.nl>

---

 src/amd/llvm/ac_llvm_build.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c
index d9ece7049c7..ece2b3f42cb 100644
--- a/src/amd/llvm/ac_llvm_build.c
+++ b/src/amd/llvm/ac_llvm_build.c
@@ -243,6 +243,7 @@ ac_to_integer_type(struct ac_llvm_context *ctx, LLVMTypeRef t)
 		switch (LLVMGetPointerAddressSpace(t)) {
 		case AC_ADDR_SPACE_GLOBAL:
 			return ctx->i64;
+		case AC_ADDR_SPACE_CONST_32BIT:
 		case AC_ADDR_SPACE_LDS:
 			return ctx->i32;
 		default:




More information about the mesa-commit mailing list