summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir.h
diff options
context:
space:
mode:
authorJason Ekstrand <[email protected]>2015-10-09 08:13:43 -0700
committerKenneth Graunke <[email protected]>2016-04-26 19:55:04 -0700
commitd800b7daa5440f6b49b5e0ae6e404d240c6a4ddc (patch)
treea92cbc618f16c62fff1bf65c75c41f1b6e126af7 /src/compiler/nir/nir.h
parentacc2f1fe361af87ce4d50b7e2b58e0da093477e1 (diff)
nir: Add a helper for figuring out what channels of an SSA def are read
Reviewed-by: Kenneth Graunke <[email protected]> Reviewed-by: Topi Pohjolainen <[email protected]>
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 4693ab58a59..a55e6821cbe 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -2119,6 +2119,8 @@ void nir_ssa_def_rewrite_uses(nir_ssa_def *def, nir_src new_src);
void nir_ssa_def_rewrite_uses_after(nir_ssa_def *def, nir_src new_src,
nir_instr *after_me);
+uint8_t nir_ssa_def_components_read(nir_ssa_def *def);
+
/* visits basic blocks in source-code order */
typedef bool (*nir_foreach_block_cb)(nir_block *block, void *state);
bool nir_foreach_block_call(nir_function_impl *impl, nir_foreach_block_cb cb,