Module: Mesa Branch: main Commit: b8d48ebc93ecc975f69a79c224b998375d47e482 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=b8d48ebc93ecc975f69a79c224b998375d47e482
Author: José Roberto de Souza <jose.so...@intel.com> Date: Thu Jan 4 10:07:45 2024 -0800 anv: Add missing anv_measure_submit() calls in Xe KMD backend Without this intel_measure don't work with Xe KMD. Signed-off-by: José Roberto de Souza <jose.so...@intel.com> Reviewed-by: Lionel Landwerlin <lionel.g.landwer...@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26882> --- src/intel/vulkan/xe/anv_batch_chain.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/intel/vulkan/xe/anv_batch_chain.c b/src/intel/vulkan/xe/anv_batch_chain.c index 9ef4fa16a16..22ccaa4763a 100644 --- a/src/intel/vulkan/xe/anv_batch_chain.c +++ b/src/intel/vulkan/xe/anv_batch_chain.c @@ -24,6 +24,7 @@ #include "xe/anv_batch_chain.h" #include "anv_private.h" +#include "anv_measure.h" #include "drm-uapi/xe_drm.h" @@ -304,6 +305,7 @@ xe_companion_rcs_queue_exec_locked(struct anv_queue *queue, struct anv_batch_bo, link); exec.address = batch_bo->bo->offset; + anv_measure_submit(companion_rcs_cmd_buffer); xe_exec_print_debug(queue, 1, &companion_rcs_cmd_buffer, NULL, 0, &exec); if (!device->info->no_hw) { @@ -355,6 +357,11 @@ xe_queue_exec_locked(struct anv_queue *queue, }; if (cmd_buffer_count) { + if (unlikely(device->physical->measure_device.config)) { + for (uint32_t i = 0; i < cmd_buffer_count; i++) + anv_measure_submit(cmd_buffers[i]); + } + anv_cmd_buffer_chain_command_buffers(cmd_buffers, cmd_buffer_count); #ifdef SUPPORT_INTEL_INTEGRATED_GPUS