nir,anv: lower if (cond) demote() to new intrinsic demote_if(cond)
Does the very same like discard -> discard_if in nir_opt_conditional_discard. The anv change is untested, I'd be glad if someone could check that. This patch will also help ACO.
Due to an influx of spam, we have had to impose restrictions on new accounts. Please see this wiki page for instructions on how to get full permissions. Sorry for the inconvenience.
Does the very same like discard -> discard_if in nir_opt_conditional_discard. The anv change is untested, I'd be glad if someone could check that. This patch will also help ACO.