From: Kenneth Graunke Date: Sun, 21 Apr 2013 05:35:46 +0000 (-0700) Subject: i965: Add a macro for accessing the SO_WRITE_OFFSET[0-3] registers. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=58765bb481636c15af2e0e92de51bbc465967c09;p=mesa.git i965: Add a macro for accessing the SO_WRITE_OFFSET[0-3] registers. Using a function-like macro makes it easy to loop over all four streams. Signed-off-by: Kenneth Graunke Reviewed-by: Eric Anholt Reviewed-by: Paul Berry --- diff --git a/src/mesa/drivers/dri/intel/intel_reg.h b/src/mesa/drivers/dri/intel/intel_reg.h index 1cfb4645129..dd91a1586c7 100644 --- a/src/mesa/drivers/dri/intel/intel_reg.h +++ b/src/mesa/drivers/dri/intel/intel_reg.h @@ -291,6 +291,8 @@ #define SO_NUM_PRIMS_WRITTEN2_IVB 0x5210 #define SO_NUM_PRIMS_WRITTEN3_IVB 0x5218 +#define GEN7_SO_WRITE_OFFSET(n) (0x5280 + (n) * 4) + #define TIMESTAMP 0x2358 #define BCS_SWCTRL 0x22200