From 39760793b56175e76bca7566992150e4e437a6d9 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 21 Oct 2019 14:11:47 +0200 Subject: [PATCH] ac/llvm: fix ac_to_integer_type() for 32-bit const addr space pointers MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Marek Olšák Reviewed-by: Bas Nieuwenhuizen --- 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: -- 2.30.2