RADV/ACO: Rendering glitches in Forza Horizon 5 windshields
Mesa: 68b7b4fb Capture: https://drive.google.com/file/d/16sDZKmurbtUHnOJBmdLfzSvaazKFok_j/view?usp=sharing NOTE: Captured on RDNA1. Forwarding a capture I received with a bookmark. I tried to create an RDNA2 capture, but it proved impossible due to bizarre app crashes.
The result is somewhat random. You might have to flip through the draw a few times to see the glitch. I tried analyzing the shader, and it does some implicit LOD texturing in control flow, but from what I can tell, this control flow is uniform. The conditions only depend on uniform values, so this should work. If I recompile the shader with a SPIRV-Cross roundtrip, it seems to work, so there might be a weird compiler bug.
When replaying the capture with LLVM, it seems to work, and I cannot reproduce the glitch.