Draft: gallivm/nir/aos: fix swizzling in AOS shaders with NIR

Dave Airlie requested to merge airlied/mesa:llvmpipe-fix-aos-swizzles into main

#6658 shows a report where a shader that hits the linear path gets incorrect results.

This shader triggered some internally shader swizzling and this wasn't done properly.

This fixes it by lowering const loads to scalar, then fixes swizzling on register values, and on input_ptrs.

Edited by Dave Airlie

Merge request reports