ac/llvm: fix load_ubo for vectors with more than 4 elements

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>
This commit is contained in:
Karol Herbst
2022-09-28 00:22:39 +02:00
committed by Marge Bot
parent 70d375100c
commit 876ea2f83b

View 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)) { (!(cache_policy & ac_glc) || ctx->gfx_level >= GFX8)) {
assert(vindex == NULL); assert(vindex == NULL);
LLVMValueRef result[8]; LLVMValueRef result[32];
LLVMValueRef offset = voffset ? voffset : ctx->i32_0; LLVMValueRef offset = voffset ? voffset : ctx->i32_0;
if (soffset) if (soffset)