Can you see if this is fixed on master? I fixed a seemingly related issue with https://cgit.freedesktop.org/mesa/mesa/commit/?id=0332c7484b712e56ce1a6648c5fa04c90e286c37