Commit 59f30aa
committed
Fix a latent issue of mesh query on Navi2x
For such mesh shader:
layout(local_size_x=1, local_size_y=1, local_size_z=128) in;
layout(triangles, max_vertices=0, max_primitives=0) out;
void main() {
}
It is valid when SetMeshOutputs is missing. We will do dummy export
with vertexCount=0 and primitiveCount=0. But the dummy export doesn't
write the data to mesh pipeline statistics buffer. The mesh query will
fail.
On Navi2x, mesh statistics still rely on SW compiler emulation and we
must do it by calling collectMeshStatsInfo.1 parent 4320b9c commit 59f30aa
1 file changed
+5
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
768 | 773 | | |
769 | 774 | | |
770 | 775 | | |
| |||
0 commit comments