Re: [Mesa-dev] [PATCH 12/18] radeonsi: use a clever alignment for descriptor uploads

2017-02-17 Thread Nicolai Hähnle
On 16.02.2017 23:16, Marek Olšák wrote: On Thu, Feb 16, 2017 at 4:17 PM, Nicolai Hähnle wrote: On 16.02.2017 13:53, Marek Olšák wrote: From: Marek Olšák Non-VBO descriptors won't be smaller than the cache line, so simply use the cache line size.

Re: [Mesa-dev] [PATCH 12/18] radeonsi: use a clever alignment for descriptor uploads

2017-02-16 Thread Marek Olšák
On Thu, Feb 16, 2017 at 4:17 PM, Nicolai Hähnle wrote: > On 16.02.2017 13:53, Marek Olšák wrote: >> >> From: Marek Olšák >> >> Non-VBO descriptors won't be smaller than the cache line, so simply use >> the cache line size. > > > What about SSBOs? Those

Re: [Mesa-dev] [PATCH 12/18] radeonsi: use a clever alignment for descriptor uploads

2017-02-16 Thread Nicolai Hähnle
On 16.02.2017 13:53, Marek Olšák wrote: From: Marek Olšák Non-VBO descriptors won't be smaller than the cache line, so simply use the cache line size. What about SSBOs? Those are just 16 bytes. Also, shader images are just 32 bytes (though we may have to bump this to

[Mesa-dev] [PATCH 12/18] radeonsi: use a clever alignment for descriptor uploads

2017-02-16 Thread Marek Olšák
From: Marek Olšák Non-VBO descriptors won't be smaller than the cache line, so simply use the cache line size. --- src/gallium/drivers/radeonsi/si_descriptors.c | 11 +++ 1 file changed, 7 insertions(+), 4 deletions(-) diff --git