summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2015-06-24 12:43:15 -0700
committerConnor Abbott <[email protected]>2015-06-30 11:18:27 -0700
commitf49e51ef44ac6400967731b75db871129b6c45f5 (patch)
tree8fc82e3813b8f323bd4ca6a714795ec68ce8cae6 /src/glsl
parent0ecdf04060518149e99a098caf4f6025fd6482a4 (diff)
nir: remove nir_src_get_parent_instr()
It's now unused. Reviewed-by: Jason Ekstrand <[email protected]>
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/nir/nir.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h
index 8c99845f04d..e48db72c53d 100644
--- a/src/glsl/nir/nir.h
+++ b/src/glsl/nir/nir.h
@@ -565,16 +565,6 @@ nir_src_for_reg(nir_register *reg)
return src;
}
-static inline nir_instr *
-nir_src_get_parent_instr(const nir_src *src)
-{
- if (src->is_ssa) {
- return src->ssa->parent_instr;
- } else {
- return src->reg.reg->parent_instr;
- }
-}
-
static inline nir_dest
nir_dest_for_reg(nir_register *reg)
{