st/mesa: Rearrange PIPE_QUERY_PIPELINE_STATISTICS result fetching.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 11 Jan 2019 21:22:57 +0000 (13:22 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 15 Jan 2019 19:43:04 +0000 (11:43 -0800)
commitf967273fb442de8281f8248e8c8bff5b13ab89e4
tree9c2c43acaa2fc7f0bbbb86b1d138807fd694d608
parente760be08b45dd2d56058d7afc9048b99241fd1de
st/mesa: Rearrange PIPE_QUERY_PIPELINE_STATISTICS result fetching.

This just changes the order of the switch statements, so we only
look at target if the query type is PIPE_QUERY_PIPELINE_STATISTICS.

The next commit will introduce a new SINGLE query type which can be
used for the same GL query types, and it won't want this processing.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/mesa/state_tracker/st_cb_queryobj.c