Reviewed-by: Bas Nieuwenhuizen <[email protected]>
On Fri, Feb 3, 2017, at 04:30, Dave Airlie wrote: > From: Dave Airlie <[email protected]> > > We count the number of slots used, but slots are vec4 sized, > so we have to scale by 16 not 4. > > Signed-off-by: Dave Airlie <[email protected]> > --- > src/amd/common/ac_nir_to_llvm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/amd/common/ac_nir_to_llvm.c > b/src/amd/common/ac_nir_to_llvm.c > index ddec74f..9be6e77 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", > -- > 2.7.4 > > _______________________________________________ > mesa-dev mailing list > [email protected] > https://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-dev
