7e55f0e17d
If we lower mem constants first, then direct array accesses to constants never get lowered, so do a constant fold pass first to remove direct const array accesses. Reviewed-by: Karol Herbst <kherbst@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7209>