pco: skip comp-only opt on collated vecs

Signed-off-by: Simon Perretta <simon.perretta@imgtec.com>
Acked-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36412>
This commit is contained in:
Simon Perretta 2025-03-17 13:25:20 +00:00 committed by Marge Bot
parent 0afe6e2254
commit 0b757da625

View file

@ -740,6 +740,13 @@ bool pco_opt_comp_only_vecs(pco_shader *shader)
continue;
}
/* Has collated vec, skip. */
/* TODO: support this. */
if (vec->num_srcs != util_dynarray_num_elements(&comps, pco_instr *)) {
util_dynarray_fini(&comps);
continue;
}
util_dynarray_foreach (&comps, pco_instr *, _comp) {
pco_instr *comp = *_comp;
pco_ref dest = comp->dest[0];