[Mesa-dev] [PATCH 3/3] i965: Add #define for MI_REPORT_PERF_COUNT on Gen6+.

Kenneth Graunke kenneth at whitecape.org
Thu Sep 19 16:27:44 PDT 2013


This appears in Volume 1 Part 1 of the Sandybridge PRM on page 48.

Signed-off-by: Kenneth Graunke <kenneth at whitecape.org>
---
 src/mesa/drivers/dri/i965/brw_defines.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_defines.h b/src/mesa/drivers/dri/i965/brw_defines.h
index e283805..b14c346 100644
--- a/src/mesa/drivers/dri/i965/brw_defines.h
+++ b/src/mesa/drivers/dri/i965/brw_defines.h
@@ -1825,6 +1825,8 @@ enum brw_wm_barycentric_interp_mode {
 # define MI_COUNTER_ADDRESS_GTT     (1 << 0)
 /* DW2: a user-defined report ID (written to the buffer but can be anything) */
 
+#define GEN6_MI_REPORT_PERF_COUNT ((0x28 << 23) | (3 - 2))
+
 /* Bitfields for the URB_WRITE message, DW2 of message header: */
 #define URB_WRITE_PRIM_END		0x1
 #define URB_WRITE_PRIM_START		0x2
-- 
1.8.3.4



More information about the mesa-dev mailing list