Re: [Mesa-dev] [PATCH v2 14/24] nv50/ir: make use of OP_SUQ for surfaces query

2016-04-26 Thread Samuel Pitoiset
On 04/26/2016 03:17 AM, Ilia Mirkin wrote: On Mon, Apr 25, 2016 at 4:15 PM, Samuel Pitoiset wrote: This implements RESQ for surfaces which comes from imageSize() GLSL bultin. As the dimensions are sticked into the driver constant buffer, this only has to be lowered with loads. v2: - load a 1

Re: [Mesa-dev] [PATCH v2 14/24] nv50/ir: make use of OP_SUQ for surfaces query

2016-04-25 Thread Ilia Mirkin
On Mon, Apr 25, 2016 at 4:15 PM, Samuel Pitoiset wrote: > This implements RESQ for surfaces which comes from imageSize() GLSL > bultin. As the dimensions are sticked into the driver constant buffer, > this only has to be lowered with loads. > > v2: - load a 1 into .w for the number of samples >

[Mesa-dev] [PATCH v2 14/24] nv50/ir: make use of OP_SUQ for surfaces query

2016-04-25 Thread Samuel Pitoiset
This implements RESQ for surfaces which comes from imageSize() GLSL bultin. As the dimensions are sticked into the driver constant buffer, this only has to be lowered with loads. v2: - load a 1 into .w for the number of samples - divide z-dim for cube/cube arrays by 6 Signed-off-by: Samuel Pi