nir: don't pass large object by value

Konstantin Kharlamov requested to merge Hi-Angel/mesa:lgtm-fixes into master

These are two fixes for a warning This parameter of type nir_dest is 72 bytes - consider passing a const pointer/reference instead from here.

This is also an experimental MR to see if commits of these kind are welcome; I can send more of them.

Merge request reports