diff options
author | Jason Ekstrand <[email protected]> | 2014-12-12 22:38:41 -0800 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2015-01-15 07:20:21 -0800 |
commit | dfb3abbaecfbe30b8858a5428c604f9d90f65505 (patch) | |
tree | f1b517acfc84b7f4d162ce9fa3078511c10e55cd /src/glsl/nir/nir_print.c | |
parent | b3fd098e7daa491637d66d03366b67c989937a1f (diff) |
nir: Remove predication
We stopped generating predicates in glsl_to_nir some time ago. Right now,
it's all dead untested code that I'm not convinced always worked in the
first place. If we decide we want them back, we can revert this patch.
Reviewed-by: Connor Abbott <[email protected]>
Diffstat (limited to 'src/glsl/nir/nir_print.c')
-rw-r--r-- | src/glsl/nir/nir_print.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/glsl/nir/nir_print.c b/src/glsl/nir/nir_print.c index 22a2a1d6557..7d60eb11ee8 100644 --- a/src/glsl/nir/nir_print.c +++ b/src/glsl/nir/nir_print.c @@ -178,12 +178,6 @@ print_alu_dest(nir_alu_dest *dest, FILE *fp) static void print_alu_instr(nir_alu_instr *instr, FILE *fp) { - if (instr->has_predicate) { - fprintf(fp, "("); - print_src(&instr->predicate, fp); - fprintf(fp, ") "); - } - print_alu_dest(&instr->dest, fp); fprintf(fp, " = %s", nir_op_infos[instr->op].name); @@ -327,12 +321,6 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_var_state *state, { unsigned num_srcs = nir_intrinsic_infos[instr->intrinsic].num_srcs; - if (instr->has_predicate) { - fprintf(fp, "("); - print_src(&instr->predicate, fp); - fprintf(fp, ") "); - } - if (nir_intrinsic_infos[instr->intrinsic].has_dest) { print_dest(&instr->dest, fp); fprintf(fp, " = "); @@ -384,12 +372,6 @@ print_intrinsic_instr(nir_intrinsic_instr *instr, print_var_state *state, static void print_tex_instr(nir_tex_instr *instr, print_var_state *state, FILE *fp) { - if (instr->has_predicate) { - fprintf(fp, "("); - print_src(&instr->predicate, fp); - fprintf(fp, ") "); - } - print_dest(&instr->dest, fp); fprintf(fp, " = "); @@ -505,12 +487,6 @@ print_tex_instr(nir_tex_instr *instr, print_var_state *state, FILE *fp) static void print_call_instr(nir_call_instr *instr, print_var_state *state, FILE *fp) { - if (instr->has_predicate) { - fprintf(fp, "("); - print_src(&instr->predicate, fp); - fprintf(fp, ") "); - } - fprintf(fp, "call %s ", instr->callee->function->name); for (unsigned i = 0; i < instr->num_params; i++) { @@ -555,12 +531,6 @@ print_const_value(nir_const_value value, unsigned num_components, FILE *fp) static void print_load_const_instr(nir_load_const_instr *instr, unsigned tabs, FILE *fp) { - if (instr->has_predicate) { - fprintf(fp, "("); - print_src(&instr->predicate, fp); - fprintf(fp, ") "); - } - print_dest(&instr->dest, fp); fprintf(fp, " = load_const "); |