Re: [Mesa-dev] [PATCH 08/11] nvc0: add indirect compute support on Kepler

2016-02-29 Thread Samuel Pitoiset
On 02/27/2016 11:29 PM, Ilia Mirkin wrote: On Sat, Feb 27, 2016 at 9:02 AM, Samuel Pitoiset wrote: The grid size is stored as three 32-bits integers in the indirect buffer but the launch descriptor uses a 32-bits integer for both griddim_y and griddim_z like this (z << 16) | y. To make it wor

Re: [Mesa-dev] [PATCH 08/11] nvc0: add indirect compute support on Kepler

2016-02-27 Thread Ilia Mirkin
On Sat, Feb 27, 2016 at 9:02 AM, Samuel Pitoiset wrote: > The grid size is stored as three 32-bits integers in the indirect > buffer but the launch descriptor uses a 32-bits integer for both > griddim_y and griddim_z like this (z << 16) | y. To make it work, > the 16 high bits of griddim_y are ove

[Mesa-dev] [PATCH 08/11] nvc0: add indirect compute support on Kepler

2016-02-27 Thread Samuel Pitoiset
The grid size is stored as three 32-bits integers in the indirect buffer but the launch descriptor uses a 32-bits integer for both griddim_y and griddim_z like this (z << 16) | y. To make it work, the 16 high bits of griddim_y are overwritten by griddim_z. Signed-off-by: Samuel Pitoiset --- src/