Commit 632241b0 authored by Timothy Arceri's avatar Timothy Arceri

nir: allow nir search type check to see through bcsel

parent 0b7f3f47
......@@ -73,6 +73,9 @@ src_is_type(nir_src src, nir_alu_type type)
src_is_type(src_alu->src[1].src, nir_type_bool);
case nir_op_inot:
return src_is_type(src_alu->src[0].src, nir_type_bool);
case nir_op_bcsel:
return src_is_type(src_alu->src[1].src, nir_type_bool) &&
src_is_type(src_alu->src[2].src, nir_type_bool);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment