summaryrefslogtreecommitdiffstats
path: root/src/glsl/nir/nir_instr_set.h
diff options
context:
space:
mode:
authorConnor Abbott <[email protected]>2015-09-24 01:05:15 -0400
committerConnor Abbott <[email protected]>2015-10-09 10:14:28 -0400
commit005c2efb7b755ac5887dc5938baa7d95a50fe853 (patch)
tree85878f9b9aa29e05b8637e3587b3f9ac77b49020 /src/glsl/nir/nir_instr_set.h
parentd6bc35934f3d1150a1da0edfb0746cd0ae8bd63b (diff)
nir: constify instruction comparison functions
v2: rebase, don't constify nir_srcs_equal() as it's pass-by-value anyways Reviewed-by: Jason Ekstrand <[email protected]> Signed-off-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_instr_set.h')
-rw-r--r--src/glsl/nir/nir_instr_set.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/nir/nir_instr_set.h b/src/glsl/nir/nir_instr_set.h
index 531bdade319..f5baffacb0e 100644
--- a/src/glsl/nir/nir_instr_set.h
+++ b/src/glsl/nir/nir_instr_set.h
@@ -25,5 +25,5 @@
#include "nir.h"
-bool nir_instrs_equal(nir_instr *instr1, nir_instr *instr2);
+bool nir_instrs_equal(const nir_instr *instr1, const nir_instr *instr2);