summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorCaio Marcelo de Oliveira Filho <[email protected]>2019-04-18 21:01:15 -0700
committerCaio Marcelo de Oliveira Filho <[email protected]>2019-04-25 12:13:06 -0700
commitd5ac5d6e836f348799625ce5792d3faee655cf9e (patch)
tree17fb9c36ac0e8face1c0fceb327bb2ef45b9f24f /src/compiler/nir/nir.h
parentff642fb0e6523dbbe44835b5c75ac14501c9a885 (diff)
nir: Add option to lower tex to txl when shader don't support implicit LOD
We already add the LOD src, so go ahead and update the texop as well when this option is set. v2: Make it an option. (Rob Clark) v3: Use a more concise name suggested by Jason. Reviewed-by: Rob Clark <[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 7d2062d3691..e878a63409d 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -3265,6 +3265,12 @@ typedef struct nir_lower_tex_options {
unsigned lower_srgb;
/**
+ * If true, lower nir_texop_tex on shaders that doesn't support implicit
+ * LODs to nir_texop_txl.
+ */
+ bool lower_tex_without_implicit_lod;
+
+ /**
* If true, lower nir_texop_txd on cube maps with nir_texop_txl.
*/
bool lower_txd_cube_map;