Re: [Mesa-dev] [PATCH] ac/nir: Add workaround for GFX9 buffer views.

2018-04-11 Thread Bas Nieuwenhuizen
On Wed, Apr 4, 2018 at 10:19 PM, Bas Nieuwenhuizen wrote: > On GFX9 whether the buffer size is interpreted as elements or bytes > depends on whether IDXEN is enabled in the instruction. If the index > is a constant zero, LLVM optimizes IDXEN to 0. > > Now the size in

Re: [Mesa-dev] [PATCH] ac/nir: Add workaround for GFX9 buffer views.

2018-03-15 Thread Samuel Pitoiset
On 03/09/2018 12:38 AM, Bas Nieuwenhuizen wrote: On GFX9 whether the buffer size is interpreted as elements or bytes depends on whether IDXEN is enabled in the instruction. If the index is a constant zero, LLVM optimizes IDXEN to 0. Now the size in elements is interpreted in bytes which of