summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_get.c
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2018-09-19 14:53:35 +0200
committerMarek Olšák <[email protected]>2019-07-03 15:51:13 -0400
commit792a638b032d16fbe6404f9d90c34b3e0f1fb0b5 (patch)
tree2fc020d12cded02beb595e8e979a347bd537b96f /src/gallium/drivers/radeonsi/si_get.c
parentbcd2d2e1942ab7158dd46a5223130498cb0a8f44 (diff)
radeonsi/gfx10: implement streamout-related queries
The NGG hardware pipeline doesn't track these statistics automatically, and in fact *cannot* track them automatically when API geometry shaders are involved, so we accumulate statistics in the shader using atomic adds. This implementation accumulates statistics via the memory system and the RW buffer descriptor setup. We could use GDS, but since these atomics aren't latency-sensitive, that basically just trades off L2$ bandwidth vs. export bus bandwidth. One single memory transaction per shader workgroup doesn't seem too bad. The result ring buffer in memory is needed either way to avoid pipeline stalls. The shader code contains the atomic unconditionally, though the GFX10_GS_QUERY_BUF is a null buffer when no queries are active. The atomic is simply discarded by the shader hardware in that case. Acked-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_get.c')
0 files changed, 0 insertions, 0 deletions