summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2017-10-16 08:50:23 -0700
committerJason Ekstrand <[email protected]>2017-10-17 07:36:00 -0700
commit41c75b5354e5d4382786ff853f6f5143a0fe4c6d (patch)
treecaa4501a38cb4bf61dd0652c7f9cf85800bb3fb0 /src/compiler/nir/nir.h
parent31fb7bbe0be83b2ad769568829a006855639bee8 (diff)
nir: Add a helper for adding texture instruction sources
Reviewed-by: Lionel Landwerlin <[email protected]>
Diffstat (limited to 'src/compiler/nir/nir.h')
-rw-r--r--src/compiler/nir/nir.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index bd6035e1f90..70c23c2db99 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -1379,6 +1379,10 @@ nir_tex_instr_src_index(const nir_tex_instr *instr, nir_tex_src_type type)
return -1;
}
+void nir_tex_instr_add_src(nir_tex_instr *tex,
+ nir_tex_src_type src_type,
+ nir_src src);
+
void nir_tex_instr_remove_src(nir_tex_instr *tex, unsigned src_idx);
typedef struct {