refactor: Implement Xe Resoure Registration (2/x)

Refactor drm_debug.cpp into IoctlHelper

Related-to: NEO-9161

Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
Brandon Yates
2024-01-09 13:39:18 +00:00
committed by Compute-Runtime-Automation
parent d3baab00db
commit ba0db2488a
12 changed files with 259 additions and 171 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2020-2023 Intel Corporation
* Copyright (C) 2020-2024 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -315,7 +315,7 @@ bool DrmAllocation::prefetchBO(BufferObject *bo, uint32_t vmHandleId, uint32_t s
}
void DrmAllocation::registerBOBindExtHandle(Drm *drm) {
if (!drm->resourceRegistrationEnabled()) {
if (!drm->getIoctlHelper()->resourceRegistrationEnabled()) {
return;
}