nir: Add nir_lower_tex support for Broadcom's swizzled TG4 results.
authorEric Anholt <eric@anholt.net>
Thu, 27 Dec 2018 06:45:04 +0000 (22:45 -0800)
committerEric Anholt <eric@anholt.net>
Tue, 8 Jan 2019 21:03:41 +0000 (13:03 -0800)
commit6051c11d17645b973f975b25cfdebc027dc36be7
treea8165263f0db7569c44358dfeced251b4c862dfb
parent3fcec4a5505a51e90b07be8c392189fa7799d368
nir: Add nir_lower_tex support for Broadcom's swizzled TG4 results.

V3D returns the texels in a different order in the resulting vec4 from
what GLSL wants, so we need to put in a swizzle.  Fixes
dEQP-GLES31.functional.texture.gather.basic.2d.rgba8.base_level.level_1

Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/broadcom/compiler/vir.c
src/compiler/nir/nir.h
src/compiler/nir/nir_lower_tex.c