intel/perf: use temporary pointers to simplify access to perf state
authorMark Janes <mark.a.janes@intel.com>
Wed, 26 Jun 2019 18:01:48 +0000 (11:01 -0700)
committerMark Janes <mark.a.janes@intel.com>
Thu, 8 Aug 2019 04:33:55 +0000 (21:33 -0700)
commit52f7a0bff7d4065de1ce4b91a767555dee811751
tree4bd38233278c6fce3b75887f63e27b190fba2c55
parenta157f5acb13ec6d62868ad7923ecf1fb3b93d5db
intel/perf: use temporary pointers to simplify access to perf state

Most accesses to perf state were made through repeated dereferences of
brw_context members.  Prefering temporary variables of perf_ctx and
perf_cfg has the following advantages:

 - more concise implementation
 - easier refactor when moving subsequent methods to perf

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_performance_query.c