summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_deref.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/compiler/nir/nir_deref.h')
-rw-r--r--src/compiler/nir/nir_deref.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/compiler/nir/nir_deref.h b/src/compiler/nir/nir_deref.h
index 0980bae7215..6f4141aaf82 100644
--- a/src/compiler/nir/nir_deref.h
+++ b/src/compiler/nir/nir_deref.h
@@ -48,6 +48,12 @@ void nir_deref_path_init(nir_deref_path *path,
nir_deref_instr *deref, void *mem_ctx);
void nir_deref_path_finish(nir_deref_path *path);
+unsigned nir_deref_instr_get_const_offset(nir_deref_instr *deref,
+ glsl_type_size_align_func size_align);
+
+nir_ssa_def *nir_build_deref_offset(nir_builder *b, nir_deref_instr *deref,
+ glsl_type_size_align_func size_align);
+
#ifdef __cplusplus
} /* extern "C" */
#endif