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:
@@ -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)
|
||||||
|
Reference in New Issue
Block a user