Fixed by this commit: https://cgit.freedesktop.org/mesa/mesa/commit/?id=8667a1aea2ac3fee9b1b663132dc1bea8ec21cda