Incorrect tessellation in Heaven with zink on radv + llvm
System information
- OS: Arch Linux
- GPU: Radeon 5700XT
- Kernel version: 5.13.12
- Mesa version: Mesa 21.3.0-devel (git-1e921e50)
- Desktop manager and compositor: KDE (kwin) 5.22.4 on Wayland 1.19.0
Describe the issue
Running Unigine Heaven 4.0 with zink on radv + llvm produces incorrect rendering results, with blue polygons showing up around tessellated models. Issue seems to be related to tessellation, since turning tessellation off in render settings fixes the issue.
Note: when run with aco as the compiler backend, or when run under radeonsi, correct behavior is exhibited.
Steps to reproduce
- Run Heaven under zink + radv + llvm (
RADV_DEBUG=llvm MESA_LOADER_DRIVER_OVERRIDE=zink ./heaven
) - Enable tessellation, then click run.
- Observe blue triangles around anything with tessellation.
Log files as attachment
I got a few RenderDoc frame captures exhibiting the issue. They can be found here.