diff options
author | Dave Airlie <airlied@redhat.com> | 2017-02-03 01:46:24 +0000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2017-02-03 19:52:13 +0000 |
commit | a1a8aef4c9dbdf254036adada95f0d6e394c5d6a (patch) | |
tree | 27b5f99d576822b41796e612501af0d35ab58517 /src/amd/common/ac_nir_to_llvm.c | |
parent | 66463b7f7540ed3d21ca6ae7c729fbb671453188 (diff) |
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>
Diffstat (limited to 'src/amd/common/ac_nir_to_llvm.c')
-rw-r--r-- | src/amd/common/ac_nir_to_llvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c index ddec74fa1a..9be6e77f86 100644 --- a/src/amd/common/ac_nir_to_llvm.c +++ b/src/amd/common/ac_nir_to_llvm.c @@ -4812,7 +4812,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", |