Module: Mesa Branch: master Commit: bf5f931aee35e8448a6560545d86deb35f0639b3 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=bf5f931aee35e8448a6560545d86deb35f0639b3
Author: Connor Abbott <cwabbo...@gmail.com> Date: Thu Sep 24 02:10:13 2015 -0400 nir: make nir_instrs_equal() static This was previously tied to CSE, since it would only work for instructions where nir_can_cse() (now instr_can_rewrite()) returned true. Now that CSE uses the instruction set abstraction which only uses this internally, we can make it local to nir_instr_set.c. Reviewed-by: Jason Ekstrand <jason.ekstr...@intel.com> Signed-off-by: Connor Abbott <cwabbo...@gmail.com> --- src/glsl/nir/nir_instr_set.c | 2 +- src/glsl/nir/nir_instr_set.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/glsl/nir/nir_instr_set.c b/src/glsl/nir/nir_instr_set.c index 7460fcc..7886003 100644 --- a/src/glsl/nir/nir_instr_set.c +++ b/src/glsl/nir/nir_instr_set.c @@ -247,7 +247,7 @@ nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2, * the same hash for (ignoring collisions, of course). */ -bool +static bool nir_instrs_equal(const nir_instr *instr1, const nir_instr *instr2) { if (instr1->type != instr2->type) diff --git a/src/glsl/nir/nir_instr_set.h b/src/glsl/nir/nir_instr_set.h index a7f6c9d..939e8dd 100644 --- a/src/glsl/nir/nir_instr_set.h +++ b/src/glsl/nir/nir_instr_set.h @@ -25,8 +25,6 @@ #include "nir.h" -bool nir_instrs_equal(const nir_instr *instr1, const nir_instr *instr2); - /** * This file defines functions for creating, destroying, and manipulating an * "instruction set," which is an abstraction for finding duplicate _______________________________________________ mesa-commit mailing list mesa-commit@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-commit