This issue has been fixed with https://cgit.freedesktop.org/mesa/mesa/commit/?id=4b11ed443b85e4fcddc5d0ef60dec096ecdb951e.