Using a function-like macro makes it easy to loop over all four streams.

Signed-off-by: Kenneth Graunke <kenn...@whitecape.org>
Cc: Eric Anholt <e...@anholt.net>
Cc: Paul Berry <stereotype...@gmail.com>
---
 src/mesa/drivers/dri/intel/intel_reg.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/intel/intel_reg.h 
b/src/mesa/drivers/dri/intel/intel_reg.h
index 1cfb464..dd91a15 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
-- 
1.8.2.3

_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to