OSDN Git Service

i965: Use binary literals counter select.
authorMatt Turner <mattst88@gmail.com>
Tue, 4 Mar 2014 03:10:44 +0000 (19:10 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 16 May 2014 06:31:27 +0000 (23:31 -0700)
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_performance_monitor.c

index ff3cb97..3f64eae 100644 (file)
@@ -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.");