From 367c7c2d7cbc9a53805162d335405b3b08d46c2d Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 27 Mar 2013 14:46:05 -0700 Subject: [PATCH] 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 Reviewed-by: Eric Anholt --- src/mesa/drivers/dri/i965/intel_reg.h | 4 ++++ 1 file changed, 4 insertions(+) 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) -- 2.30.2