radv: When using VS+PS only, primitive ID is mixed up after NGG culling
When some triangles are culled, the primitive ID of the culled triangles is mixed up with the surviving triangles.
To trigger this bug, the application needs:
- A pipeline with VS+PS only
- Triangle primitive topology
- PS should read the primitive ID
- There should be 4 or fewer PS input variables
- Culling should be enabled (eg. backface culling), and some of the triangles drawn should be culled
- Draw call must have many vertices (more than 128) or be indirect
I asked for a CTS test to cover this case:
Edited by Timur Kristóf