rework nir constants

Closed Karol Herbst requested to merge karolherbst/mesa:constant_rework into master