i965: move mdapi guid into intel/perf
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 8 Jun 2018 21:18:46 +0000 (22:18 +0100)
committerLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 17 Apr 2019 13:10:42 +0000 (14:10 +0100)
One more thing we want to share between the different APIs.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Mark Janes <mark.a.janes@intel.com>
src/intel/perf/gen_perf_mdapi.h
src/mesa/drivers/dri/i965/brw_performance_query_mdapi.c

index fcdee07901341859314422c05b13b333f61cfffe..a2f8066dcf4b26d1d1a98d5e53f5be68cf6dcc42 100644 (file)
@@ -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.
  */
index fbdbca1260c163432ff88755ef9e9bea59e668e9..d95a9638731d53f0661bc733068b45c2d08972f5 100644 (file)
@@ -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... */