From: Samuel Pitoiset Date: Mon, 21 Oct 2019 12:11:47 +0000 (+0200) Subject: ac/llvm: fix ac_to_integer_type() for 32-bit const addr space pointers X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=39760793b56175e76bca7566992150e4e437a6d9;p=mesa.git 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 Reviewed-by: Marek Olšák Reviewed-by: Bas Nieuwenhuizen --- 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: