ac/nir: move ngg_gs_shader_query to a common function
authorQiang Yu <yuq825@gmail.com>
Wed, 30 Nov 2022 08:49:11 +0000 (16:49 +0800)
committerQiang Yu <yuq825@gmail.com>
Tue, 13 Dec 2022 03:43:49 +0000 (11:43 +0800)
commit0e52a4faf061dac024c0a673b944cbbb20d6706c
tree6dbf719557c27b7be7040cfce28a8f885f4961ed
parent9a6416b3746cb90b544518643677a4b53666b1dc
ac/nir: move ngg_gs_shader_query to a common function

To be shared by NGG GS and legacy GS. Legacy GS need this when
GFX10 which mix use NGG and legacy GS. For example when streamout
is enabled, it uses legacy GS, otherwise uses NGG GS. So legacy
GS also need to update query emulation which is a sum of NGG and
legacy GS results.

Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20158>
src/amd/common/ac_nir.c
src/amd/common/ac_nir.h
src/amd/common/ac_nir_lower_ngg.c