radv/gfx10: implement NGG GS queries
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Jan 2020 17:30:50 +0000 (18:30 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 29 Jan 2020 16:40:48 +0000 (17:40 +0100)
commite4752dafede30fbfc93208d9d4091873a8bd5d31
tree472829d7276adbb2314936d03bda44f006c40138
parent3c1f657f35ca9ba0381164e4914a18907ff2cf3b
radv/gfx10: implement NGG GS queries

The number of generated primitives is only counted by the hardware
if GS uses the legacy path. For NGG GS, we need to accumulate that
value in the NGG GS itself. To achieve that, we use a plain GDS
atomic operation.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3380>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_nir_to_llvm.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_query.c
src/amd/vulkan/radv_shader.h
src/amd/vulkan/radv_shader_args.c
src/amd/vulkan/radv_shader_args.h