r600g: Implement gpu_shader5 textureGather

Graphics / Mesa 3D Graphics Library / Mesa - Glenn Kennard [gmail.com] - 1 August 2014 09:19 UTC

Adds 0-3 textureGather component selection and non-constant offsets

Caveat: 0 and 1 texture swizzles only work if textureGather component select is 3 or a component that does not exist in the sampler texture format. This is a hardware limitation, any other value returns 128/255=0.501961 for both 0 and 1.

Passes all textureGather piglit tests on radeon 6670, except for those using 0/1 texture swizzles due to aforementioned reason.

3a9278b r600g: Implement gpu_shader5 textureGather
docs/GL3.txt | 4 ++--
src/gallium/drivers/r600/r600_pipe.c | 5 +++--
src/gallium/drivers/r600/r600_shader.c | 36 +++++++++++++++++++++++++++++---
3 files changed, 38 insertions(+), 7 deletions(-)

Upstream: cgit.freedesktop.org


  • Share