From 876ea2f83b70daf5c1ed84735b85c17548c49cbe Mon Sep 17 00:00:00 2001 From: Karol Herbst Date: Wed, 28 Sep 2022 00:22:39 +0200 Subject: [PATCH] ac/llvm: fix load_ubo for vectors with more than 4 elements MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Karol Herbst Reviewed-by: Marek Olšák Part-of: --- src/amd/llvm/ac_llvm_build.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/llvm/ac_llvm_build.c b/src/amd/llvm/ac_llvm_build.c index ab2326c..6dcb9cf 100644 --- a/src/amd/llvm/ac_llvm_build.c +++ b/src/amd/llvm/ac_llvm_build.c @@ -1308,7 +1308,7 @@ LLVMValueRef ac_build_buffer_load(struct ac_llvm_context *ctx, LLVMValueRef rsrc (!(cache_policy & ac_glc) || ctx->gfx_level >= GFX8)) { assert(vindex == NULL); - LLVMValueRef result[8]; + LLVMValueRef result[32]; LLVMValueRef offset = voffset ? voffset : ctx->i32_0; if (soffset) -- 2.7.4