Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24432>
}
static bool
-all_srcs_are_ssa(const nir_alu_instr *instr)
-{
- for (unsigned i = 0; i < nir_op_infos[instr->op].num_inputs; i++) {
- }
-
- return true;
-}
-
-
-static bool
all_uses_are_bcsel(const nir_alu_instr *instr)
{
nir_foreach_use(use, &instr->dest.dest.ssa) {
if (!is_two_src_comparison(alu))
continue;
- if (!all_srcs_are_ssa(alu))
- continue;
-
if (!all_uses_are_bcsel(alu))
continue;