amd: lower load sysval intrinsics in ac_nir_lower_intrinsics_to_args instead of drivers/ACO/ac_nir_to_llvm
This unifies intrinsic lowering between RADV and radeonsi by moving it into ac_nir_lower_intrinsics_to_args
.
Thanks to NIR and improvements in the lowering over what ACO did, it results in -0.71% code size reduction in affected shaders for radeonsi+ACO. (26056 affected / 58359 total)
It also results in shorter and more readable code. The diff stat added-removed = -721 lines of code in total, and -479 just in ACO.