mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
radv/ac: correctly size shared memory usage.
We count the number of slots used, but slots are vec4 sized,
so we have to scale by 16 not 4.
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Cc: "17.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
(cherry picked from commit a1a8aef4c9)
This commit is contained in:
parent
f02f17f133
commit
e789af4a9f
1 changed files with 1 additions and 1 deletions
|
|
@ -4479,7 +4479,7 @@ LLVMModuleRef ac_translate_nir_to_llvm(LLVMTargetMachineRef tm,
|
|||
idx++;
|
||||
}
|
||||
|
||||
shared_size *= 4;
|
||||
shared_size *= 16;
|
||||
var = LLVMAddGlobalInAddressSpace(ctx.module,
|
||||
LLVMArrayType(ctx.i8, shared_size),
|
||||
"compute_lds",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue