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.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26882>
This commit is contained in:
José Roberto de Souza
2024-01-04 10:07:45 -08:00
committed by Marge Bot
parent a0f7820fe8
commit b8d48ebc93

View File

@@ -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