nir: Make nir_alu_srcs_equal non-static.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 29 Jul 2016 08:29:11 +0000 (01:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 4 Aug 2016 07:41:07 +0000 (00:41 -0700)
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
src/compiler/nir/nir.h
src/compiler/nir/nir_instr_set.c

index 65ecd3369d03661d94bcee1ec37ebcc18402a67c..9ce5be2176d94f4011a123ad496e1c9ea6a93a01 100644 (file)
@@ -785,6 +785,9 @@ nir_ssa_alu_instr_src_components(const nir_alu_instr *instr, unsigned src)
    return instr->dest.dest.ssa.num_components;
 }
 
+bool nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2,
+                        unsigned src1, unsigned src2);
+
 typedef enum {
    nir_deref_type_var,
    nir_deref_type_array,
index 45f42bf25e2f50547d759625d2781dfc0a601e32..9cb9ed43e8b39cf6545fd4a7e2585e8d231bc28f 100644 (file)
@@ -228,7 +228,7 @@ nir_srcs_equal(nir_src src1, nir_src src2)
    }
 }
 
-static bool
+bool
 nir_alu_srcs_equal(const nir_alu_instr *alu1, const nir_alu_instr *alu2,
                    unsigned src1, unsigned src2)
 {