mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 21:18:24 +08:00
performance: skip resource registration when debugging disabled
Related-to: NEO-15147 Signed-off-by: Brandon Yates <brandon.yates@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
f574534602
commit
4f711cf5d8
@@ -1825,11 +1825,15 @@ void DrmMemoryManager::unregisterAllocation(GraphicsAllocation *allocation) {
|
||||
}
|
||||
|
||||
void DrmMemoryManager::registerAllocationInOs(GraphicsAllocation *allocation) {
|
||||
|
||||
if (allocation) {
|
||||
auto drmAllocation = static_cast<DrmAllocation *>(allocation);
|
||||
drmAllocation->registerBOBindExtHandle(&getDrm(drmAllocation->getRootDeviceIndex()));
|
||||
if (isAllocationTypeToCapture(drmAllocation->getAllocationType())) {
|
||||
drmAllocation->markForCapture();
|
||||
auto drm = &getDrm(drmAllocation->getRootDeviceIndex());
|
||||
if (drm->getRootDeviceEnvironment().executionEnvironment.isDebuggingEnabled()) {
|
||||
drmAllocation->registerBOBindExtHandle(drm);
|
||||
if (isAllocationTypeToCapture(drmAllocation->getAllocationType())) {
|
||||
drmAllocation->markForCapture();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user