diff options
author | Eric Anholt <[email protected]> | 2018-12-26 22:45:04 -0800 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2019-01-08 13:03:41 -0800 |
commit | 6051c11d17645b973f975b25cfdebc027dc36be7 (patch) | |
tree | a8165263f0db7569c44358dfeced251b4c862dfb /src/broadcom/compiler | |
parent | 3fcec4a5505a51e90b07be8c392189fa7799d368 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/broadcom/compiler')
-rw-r--r-- | src/broadcom/compiler/vir.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/broadcom/compiler/vir.c b/src/broadcom/compiler/vir.c index 01e18ffd074..4e6149d11aa 100644 --- a/src/broadcom/compiler/vir.c +++ b/src/broadcom/compiler/vir.c @@ -611,6 +611,8 @@ v3d_lower_nir(struct v3d_compile *c) { struct nir_lower_tex_options tex_options = { .lower_txd = true, + .lower_tg4_broadcom_swizzle = true, + .lower_rect = false, /* XXX: Use this on V3D 3.x */ .lower_txp = ~0, /* Apply swizzles to all samplers. */ |