i965: Add #defines for the OACONTROL register and fields.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 27 Mar 2013 21:46:05 +0000 (14:46 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 21 Nov 2013 23:01:14 +0000 (15:01 -0800)
We'll need to write this register to start/stop performance counters.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_reg.h

index d73203892cf4bf4e0d4ef34d735413c3e76f46ea..b1208624a6c5efc78cc806e7b47ce635459f98cc 100644 (file)
 #define BCS_SWCTRL                      0x22200
 # define BCS_SWCTRL_SRC_Y               (1 << 0)
 # define BCS_SWCTRL_DST_Y               (1 << 1)
+
+#define OACONTROL                       0x2360
+# define OACONTROL_COUNTER_SELECT_SHIFT  2
+# define OACONTROL_ENABLE_COUNTERS       (1 << 0)