aboutsummaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2017-11-21 16:21:36 -0800
committerEric Anholt <[email protected]>2017-12-14 14:36:17 -0800
commit0bead224fea0ad278ec65d2b2a09033b6c5192ff (patch)
treed3d944213b16cb11c8c0cc59a1e5c4123b0a3020 /src/compiler/nir/nir.h
parentb08b6289943b225b6451e6c8ce331a8c11bd0c7f (diff)
nir: Add a new lowering option to lower all txd to txl.
VC5 requires that all txd are lowered in the shader. Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 25c36c66ef9..440c3fe9974 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -2619,6 +2619,12 @@ typedef struct nir_lower_tex_options {
* with lower_txd_cube_map.
*/
bool lower_txd_shadow;
+
+ /**
+ * If true, lower nir_texop_txd on all samplers to a nir_texop_txl.
+ * Implies lower_txd_cube_map and lower_txd_shadow.
+ */
+ bool lower_txd;
} nir_lower_tex_options;
bool nir_lower_tex(nir_shader *shader,