summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenneth Graunke <kenneth@whitecape.org>2013-03-27 14:46:05 -0700
committerKenneth Graunke <kenneth@whitecape.org>2013-11-21 15:01:14 -0800
commit367c7c2d7cbc9a53805162d335405b3b08d46c2d (patch)
tree1cb1ecf42ee26f619c53f3e123fb704dfab9f0cd
parent901cae07ffa93910f6ce01263881b1977303d5d5 (diff)
i965: Add #defines for the OACONTROL register and fields.
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>
-rw-r--r--src/mesa/drivers/dri/i965/intel_reg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/intel_reg.h b/src/mesa/drivers/dri/i965/intel_reg.h
index d73203892cf..b1208624a6c 100644
--- a/src/mesa/drivers/dri/i965/intel_reg.h
+++ b/src/mesa/drivers/dri/i965/intel_reg.h
@@ -126,3 +126,7 @@
#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)