From 730bc124c39f4a2ed9fea53959676bca150ae4d3 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 3 Mar 2014 19:10:44 -0800 Subject: [PATCH] i965: Use binary literals counter select. Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_performance_monitor.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_performance_monitor.c b/src/mesa/drivers/dri/i965/brw_performance_monitor.c index ff3cb97b1e1..3f64eae57eb 100644 --- a/src/mesa/drivers/dri/i965/brw_performance_monitor.c +++ b/src/mesa/drivers/dri/i965/brw_performance_monitor.c @@ -645,10 +645,10 @@ start_oa_counters(struct brw_context *brw) case 5: return; /* Ironlake counters are always running. */ case 6: - counter_format = 1; /* 0b001 */ + counter_format = 0b001; break; case 7: - counter_format = 5; /* 0b101 */ + counter_format = 0b101; break; default: assert(!"Tried to enable OA counters on an unsupported generation."); -- 2.30.2