Re: [Mesa-dev] [PATCH 1/2] spirv/nir: add support for ImageGatherExtended

2016-12-16 Thread Dave Airlie
On 15 December 2016 at 12:23, Ilia Mirkin wrote: > ping > > On Sun, Nov 27, 2016 at 4:22 PM, Ilia Mirkin wrote: >> The strategy is to do the same thing that the GLSL lower_offset_arrays >> pass does - create 4 separate texture gather ops, one per offset, and >> read in the results from each gathe

Re: [Mesa-dev] [PATCH 1/2] spirv/nir: add support for ImageGatherExtended

2016-12-14 Thread Ilia Mirkin
ping On Sun, Nov 27, 2016 at 4:22 PM, Ilia Mirkin wrote: > The strategy is to do the same thing that the GLSL lower_offset_arrays > pass does - create 4 separate texture gather ops, one per offset, and > read in the results from each gather's w component to recreate the > desired result. > > Sign

[Mesa-dev] [PATCH 1/2] spirv/nir: add support for ImageGatherExtended

2016-11-27 Thread Ilia Mirkin
The strategy is to do the same thing that the GLSL lower_offset_arrays pass does - create 4 separate texture gather ops, one per offset, and read in the results from each gather's w component to recreate the desired result. Signed-off-by: Ilia Mirkin --- src/compiler/spirv/spirv_to_nir.c | 76 ++