Skip to content

radv: fix NGG streamout with VS and GPL on GFX11

With GPL it's not possible to know the primitive topology when compiling the pre-rasterization stages. For NGG, we use the maximum number of vertices per prim and rely on the hardware to ignore the extra bits for points/lines.

Though, this can't work for NGG streamout because the number of vertices per prim is used to compute a streamout offset. The only way to solve this is to pass the number of vertices per prim through a new user SGPR.

This fixes a bunch of streamout tests with Zink/RADV on GFX11.

Merge request reports