summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2017-06-09 11:35:25 +0200
committerNicolai Hähnle <[email protected]>2017-07-31 14:55:29 +0200
commitbce6f9987522ebb585571f7333d47e41e1dead9b (patch)
tree51f5b98f206faefe05724a2cbfee37c4d76f8929 /src/compiler/nir/nir.h
parentf1da97ef7a8408155d2627ef55092c2aa78c81ac (diff)
nir: add nir_lower_samplers_as_deref pass
This pass is a replacement for the nir_lower_samplers pass, which has the advantage of keeping sampler references as derefs. This allows a unified treatment of texture instructions and image intrinsics in the backend.
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 007ca6afe4d..b6c6923627c 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -2442,6 +2442,8 @@ void nir_lower_io_to_scalar(nir_shader *shader, nir_variable_mode mask);
bool nir_lower_samplers(nir_shader *shader,
const struct gl_shader_program *shader_program);
+bool nir_lower_samplers_as_deref(nir_shader *shader,
+ const struct gl_shader_program *shader_program);
bool nir_lower_system_values(nir_shader *shader);