Mesa (master): i965: perf: use gen_device_info rather then brw_context
Lionel Landwerlin
llandwerlin at kemper.freedesktop.org
Tue Jun 27 12:15:08 UTC 2017
Module: Mesa
Branch: master
Commit: 8ff086fa68a5dc2115ffb5133b6e1a00ffb9940c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8ff086fa68a5dc2115ffb5133b6e1a00ffb9940c
Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date: Sun Apr 23 19:12:00 2017 -0700
i965: perf: use gen_device_info rather then brw_context
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
---
src/mesa/drivers/dri/i965/brw_performance_query.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/brw_performance_query.c b/src/mesa/drivers/dri/i965/brw_performance_query.c
index 519c3ec2f9..90a3d588bd 100644
--- a/src/mesa/drivers/dri/i965/brw_performance_query.c
+++ b/src/mesa/drivers/dri/i965/brw_performance_query.c
@@ -825,6 +825,7 @@ static void
accumulate_oa_reports(struct brw_context *brw,
struct brw_perf_query_object *obj)
{
+ const struct gen_device_info *devinfo = &brw->screen->devinfo;
struct gl_perf_query_object *o = &obj->base;
uint32_t *start;
uint32_t *last;
@@ -903,8 +904,7 @@ accumulate_oa_reports(struct brw_context *brw,
* For Haswell we can rely on the HW to stop the progress
* of OA counters while any other context is acctive.
*/
- if (brw->gen >= 8) {
-
+ if (devinfo->gen >= 8) {
if (in_ctx && report[2] != ctx_id) {
DBG("i915 perf: Switch AWAY (observed by ID change)\n");
in_ctx = false;
More information about the mesa-commit
mailing list