The failures were most likely caused by mishandling of barriers in the virtualised control flow, resulting in the UAV being written too early, but this is hard to prove.
Yeah, that totally makes sense. And indeed I could reproduce the bug on my system using Mesa 22.3.6, but using the same build and cherry picking !711 the bug is solved. Thinking about it, I even wonder how that works on recent Mesa, the old structurizer messes up with control flow completely. The new one should be much better.