Otherwise, it's possible to increase counters if a shader has XFB but
the application paused it.
Cc: 22.3 mesa-stable
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/19801>
(cherry picked from commit
5b60949155869f15a9f62a329422bb57b168ee7f)
"description": "radv: enable NGG XFB queries only if streamout is enabled",
"nominated": true,
"nomination_type": 0,
- "resolution": 0,
+ "resolution": 1,
"main_sha": null,
"because_sha": null
},
if (cmd_buffer->state.active_prims_gen_gds_queries)
ngg_query_state |= radv_ngg_query_prim_gen;
- if (cmd_buffer->state.active_prims_xfb_gds_queries) {
+ if (cmd_buffer->state.active_prims_xfb_gds_queries && radv_is_streamout_enabled(cmd_buffer)) {
ngg_query_state |= radv_ngg_query_prim_xfb | radv_ngg_query_prim_gen;
}