ac/llvm: fix load_ubo for vectors with more than 4 elements
authorKarol Herbst <kherbst@redhat.com>
Tue, 27 Sep 2022 22:22:39 +0000 (00:22 +0200)
committerMarge Bot <emma+marge@anholt.net>
Sat, 1 Oct 2022 13:36:46 +0000 (13:36 +0000)
Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18802>

src/amd/llvm/ac_llvm_build.c

index ab2326c..6dcb9cf 100644 (file)
@@ -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)