Re: [Mesa-dev] [PATCH] radv/ac: Fix shared memory offset calculation

2017-03-17 Thread Bas Nieuwenhuizen
Pushed. On Thu, Mar 16, 2017 at 5:40 PM, Alex Smith wrote: > The index passed to get_shared_memory_ptr is an attribute slot index, > i.e. the index of a vec4 within LDS. Therefore this must be scaled by > sizeof(vec4) to give the LDS byte offset. > > Signed-off-by:

Re: [Mesa-dev] [PATCH] radv/ac: Fix shared memory offset calculation

2017-03-16 Thread Emil Velikov
On 16 March 2017 at 16:40, Alex Smith wrote: > The index passed to get_shared_memory_ptr is an attribute slot index, > i.e. the index of a vec4 within LDS. Therefore this must be scaled by > sizeof(vec4) to give the LDS byte offset. > Whoever is reviewing/merging this

[Mesa-dev] [PATCH] radv/ac: Fix shared memory offset calculation

2017-03-16 Thread Alex Smith
The index passed to get_shared_memory_ptr is an attribute slot index, i.e. the index of a vec4 within LDS. Therefore this must be scaled by sizeof(vec4) to give the LDS byte offset. Signed-off-by: Alex Smith --- src/amd/common/ac_nir_to_llvm.c | 2 +- 1 file