Skip to content

lima: fix vector const src referenced multiple times

Erico Nunes requested to merge enunes/mesa:lima-src-const-pipeline into main

It can happen that a single vector constant is referenced multiple times by the same node, with different swizzles. Notably, a fcsel node selecting different fields of the const with a condition.

This needs to be taken into account by checking and updating the swizzles for all the srcs of a target node when inserting the const node to the same instruction.

Merge request reports