summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2019-01-07 18:00:22 -0600
committerJason Ekstrand <[email protected]>2019-04-19 19:56:42 +0000
commit995dc4e5c36dad47f5e289e0b1d8095b21729881 (patch)
tree444ad00c46341158d0cfe8e43c6daf8bfbc8b0e2 /src/compiler/nir/nir.h
parent146deec9ef5f73794daba4ad7cd95016fd07266a (diff)
nir/lower_io: Expose some explicit I/O lowering helpers
Reviewed-by: Lionel Landwerlin <[email protected]> Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index c79dcecafc4..9d210ac80e0 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -3088,6 +3088,16 @@ typedef enum {
*/
nir_address_format_32bit_index_offset,
} nir_address_format;
+
+nir_ssa_def * nir_explicit_io_address_from_deref(struct nir_builder *b,
+ nir_deref_instr *deref,
+ nir_ssa_def *base_addr,
+ nir_address_format addr_format);
+void nir_lower_explicit_io_instr(struct nir_builder *b,
+ nir_intrinsic_instr *io_instr,
+ nir_ssa_def *addr,
+ nir_address_format addr_format);
+
bool nir_lower_explicit_io(nir_shader *shader,
nir_variable_mode modes,
nir_address_format);