Module: Mesa
Branch: main
Commit: a7b4573c11989394750596fbd187df3b3b4d769c
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=a7b4573c11989394750596fbd187df3b3b4d769c

Author: Samuel Pitoiset <[email protected]>
Date:   Mon Apr 24 16:42:56 2023 +0200

ac/sqtt: add rgp_sqtt_marker_cb_id definition

Signed-off-by: Samuel Pitoiset <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22670>

---

 src/amd/common/ac_sqtt.h | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/src/amd/common/ac_sqtt.h b/src/amd/common/ac_sqtt.h
index 7ca3428954e..815f5bfdce7 100644
--- a/src/amd/common/ac_sqtt.h
+++ b/src/amd/common/ac_sqtt.h
@@ -128,6 +128,26 @@ enum rgp_sqtt_marker_identifier
    RGP_SQTT_MARKER_IDENTIFIER_RESERVED6 = 0xF
 };
 
+/**
+ * Command buffer IDs used in RGP SQ thread-tracing markers (only 20 bits).
+ */
+union rgp_sqtt_marker_cb_id {
+   struct {
+      uint32_t per_frame : 1; /* Must be 1, frame-based command buffer ID. */
+      uint32_t frame_index : 7;
+      uint32_t cb_index : 12; /* Command buffer index within the frame. */
+      uint32_t reserved : 12;
+   } per_frame_cb_id;
+
+   struct {
+      uint32_t per_frame : 1; /* Must be 0, global command buffer ID. */
+      uint32_t cb_index : 19; /* Global command buffer index. */
+      uint32_t reserved : 12;
+   } global_cb_id;
+
+   uint32_t all;
+};
+
 /**
  * RGP SQ thread-tracing marker for the start of a command buffer. (Table 2)
  */

Reply via email to