d40c64c4c3
Now that we try harder for memcpys, we can use nir's complex usage helper. We also can just mark the vars instead of using a hash map, since location doesn't mean anything for constant vars. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23173>