From dfb3abbaecfbe30b8858a5428c604f9d90f65505 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 12 Dec 2014 22:38:41 -0800 Subject: 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 --- src/glsl/nir/nir_validate.c | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'src/glsl/nir/nir_validate.c') diff --git a/src/glsl/nir/nir_validate.c b/src/glsl/nir/nir_validate.c index 937cbb9bf6e..f0eb87fd393 100644 --- a/src/glsl/nir/nir_validate.c +++ b/src/glsl/nir/nir_validate.c @@ -254,9 +254,6 @@ validate_alu_instr(nir_alu_instr *instr, validate_state *state) for (unsigned i = 0; i < nir_op_infos[instr->op].num_inputs; i++) { validate_alu_src(instr, i, state); } - - if (instr->has_predicate) - validate_src(&instr->predicate, state); } static void @@ -372,9 +369,6 @@ validate_intrinsic_instr(nir_intrinsic_instr *instr, validate_state *state) default: break; } - - if (instr->has_predicate) - validate_src(&instr->predicate, state); } static void @@ -412,9 +406,6 @@ validate_call_instr(nir_call_instr *instr, validate_state *state) } validate_deref_var(instr->return_deref, state); - - if (instr->has_predicate) - validate_src(&instr->predicate, state); } static void @@ -427,9 +418,6 @@ validate_load_const_instr(nir_load_const_instr *instr, validate_state *state) assert(instr->dest.reg.base_offset + instr->array_elems <= instr->dest.reg.reg->num_array_elems); } - - if (instr->has_predicate) - validate_src(&instr->predicate, state); } static void -- cgit v1.2.3