i965: Add #defines for the pipeline statistics counter registers.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 28 Feb 2013 02:33:25 +0000 (18:33 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 20 May 2013 20:03:18 +0000 (13:03 -0700)
These come from the Ivybridge PRM, Volume 1, Part 3.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/mesa/drivers/dri/intel/intel_reg.h

index acbbcfb93e05110d40ab95be6ac102de26c7f6ce..1cfb46451294259a9f9a29558a6bf6b6bf1c4dde 100644 (file)
 #define FENCE_XMAJOR 1
 #define FENCE_YMAJOR 2
 
+/* Pipeline Statistics Counter Registers */
+#define IA_VERTICES_COUNT               0x2310
+#define IA_PRIMITIVES_COUNT             0x2318
+#define VS_INVOCATION_COUNT             0x2320
+#define HS_INVOCATION_COUNT             0x2300
+#define DS_INVOCATION_COUNT             0x2308
+#define GS_INVOCATION_COUNT             0x2328
+#define GS_PRIMITIVES_COUNT             0x2330
+#define CL_INVOCATION_COUNT             0x2338
+#define CL_PRIMITIVES_COUNT             0x2340
+#define PS_INVOCATION_COUNT             0x2348
+#define PS_DEPTH_COUNT                  0x2350
+
 #define SO_NUM_PRIM_STORAGE_NEEDED     0x2280
 #define SO_PRIM_STORAGE_NEEDED0_IVB    0x5240
 #define SO_PRIM_STORAGE_NEEDED1_IVB    0x5248