Mesa (master): i965: move mdapi guid into intel/perf

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Apr 17 13:15:42 UTC 2019


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

Author: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Date:   Fri Jun  8 22:18:46 2018 +0100

i965: move mdapi guid into intel/perf

One more thing we want to share between the different APIs.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin at intel.com>
Reviewed-by: Mark Janes <mark.a.janes at intel.com>

---

 src/intel/perf/gen_perf_mdapi.h                         | 3 +++
 src/mesa/drivers/dri/i965/brw_performance_query_mdapi.c | 3 +--
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/intel/perf/gen_perf_mdapi.h b/src/intel/perf/gen_perf_mdapi.h
index fcdee079013..a2f8066dcf4 100644
--- a/src/intel/perf/gen_perf_mdapi.h
+++ b/src/intel/perf/gen_perf_mdapi.h
@@ -29,6 +29,9 @@
 struct gen_device_info;
 struct gen_perf_query_result;
 
+/* Guid has to matches with MDAPI's. */
+#define GEN_PERF_QUERY_GUID_MDAPI "2f01b241-7014-42a7-9eb6-a925cad3daba"
+
 /*
  * Data format expected by MDAPI.
  */
diff --git a/src/mesa/drivers/dri/i965/brw_performance_query_mdapi.c b/src/mesa/drivers/dri/i965/brw_performance_query_mdapi.c
index fbdbca1260c..d95a9638731 100644
--- a/src/mesa/drivers/dri/i965/brw_performance_query_mdapi.c
+++ b/src/mesa/drivers/dri/i965/brw_performance_query_mdapi.c
@@ -187,8 +187,7 @@ brw_perf_query_register_mdapi_oa_query(struct brw_context *brw)
 
    query->kind = GEN_PERF_QUERY_TYPE_RAW;
    query->name = "Intel_Raw_Hardware_Counters_Set_0_Query";
-   /* Guid has to matches with MDAPI's. */
-   query->guid = "2f01b241-7014-42a7-9eb6-a925cad3daba";
+   query->guid = GEN_PERF_QUERY_GUID_MDAPI;
 
    {
       /* Accumulation buffer offsets copied from an actual query... */




More information about the mesa-commit mailing list