anv/iris: report counter symbols with debug option
v2: rename to INTEL_DEBUG=perf-symbol-names Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17672>
This commit is contained in:

committed by
Marge Bot

parent
e6735409ee
commit
8dd960e056
@@ -366,7 +366,10 @@ VkResult anv_EnumeratePhysicalDeviceQueueFamilyPerformanceQueryCountersKHR(
|
||||
|
||||
vk_outarray_append_typed(VkPerformanceCounterDescriptionKHR, &out_desc, desc) {
|
||||
desc->flags = 0; /* None so far. */
|
||||
snprintf(desc->name, sizeof(desc->name), "%s", intel_counter->name);
|
||||
snprintf(desc->name, sizeof(desc->name), "%s",
|
||||
INTEL_DEBUG(DEBUG_PERF_SYMBOL_NAMES) ?
|
||||
intel_counter->symbol_name :
|
||||
intel_counter->name);
|
||||
snprintf(desc->category, sizeof(desc->category), "%s", intel_counter->category);
|
||||
snprintf(desc->description, sizeof(desc->description), "%s", intel_counter->desc);
|
||||
}
|
||||
|
Reference in New Issue
Block a user