lima/ppir: fix src read mask swizzling

The src mask can't be calculated from the dest write_mask.
Instead, it must be calculated from the swizzled operators of the src.
Otherwise, liveness calculation may report incorrect live components for
non-ssa registers.

Signed-off-by: Erico Nunes <>
Reviewed-by: Vasily Khoruzhick <>
Tested-by: Marge Bot <mesa/mesa!3502>
Part-of: <mesa/mesa!3502>
38 jobs for !3502 with ppir-liveness-fixes-2 in 20 minutes and 25 seconds (queued for 4 seconds)
merge request