783b895ec9
This both fixes its metadata handling (it was flagging dirty regardless of progress) and reduces the entire pass to 21 LOC including whitespace by making better use of helpers. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7565>