mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 06:48:06 +02:00
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:
parent
0afe6e2254
commit
0b757da625
1 changed files with 7 additions and 0 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue