summaryrefslogtreecommitdiffstats
path: root/src/glx/pixelstore.c
diff options
context:
space:
mode:
authorKenneth Graunke <[email protected]>2019-09-09 15:36:16 -0700
committerKenneth Graunke <[email protected]>2019-09-11 19:47:57 +0000
commit73e4f974b8396ce008a8f1b6d14e94a56f7c100f (patch)
tree8571e8d72f40114de309591909cfc5755cde6c98 /src/glx/pixelstore.c
parent2c1983f75767765686e8308a5841c5c26b5a0348 (diff)
st/mesa: Only pause queries if there are any active queries to pause.
Previously, ReadPixels, PBO upload/download, and clears would call cso_save_state with CSO_PAUSE_QUERIES, causing cso_context to call pipe->set_active_query_state() twice for each operation. This can potentially cause driver work to enable/disable statistics counters. But often, there are no queries happening which need to be paused. By keeping a simple tally of active queries, we can skip this work. Reviewed-by: Tapani Pälli <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/glx/pixelstore.c')
0 files changed, 0 insertions, 0 deletions