From: Kenneth Graunke Date: Wed, 27 Mar 2013 21:46:05 +0000 (-0700) Subject: i965: Add #defines for the OACONTROL register and fields. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=367c7c2d7cbc9a53805162d335405b3b08d46c2d;p=mesa.git 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 --- 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)