This reverts commit c5156257d9. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30777>
c5156257d9