mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-04 07:14:10 +08:00
Extract logging logic from DebugSettingsManager
Change-Id: I0ccc68216c1c3bb23d0389bec17124e09e4f98e1 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
d135944ae0
commit
5685b285f3
@@ -142,8 +142,8 @@ cl_int CL_API_CALL clEnqueueAcquireDX9ObjectsINTEL(cl_command_queue commandQueue
|
||||
"numObjects", numObjects,
|
||||
"memObjects", memObjects,
|
||||
"numEventsInWaitList", numEventsInWaitList,
|
||||
"eventWaitList", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
"eventWaitList", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
if (retVal != CL_SUCCESS) {
|
||||
return retVal;
|
||||
}
|
||||
@@ -161,8 +161,8 @@ cl_int CL_API_CALL clEnqueueReleaseDX9ObjectsINTEL(cl_command_queue commandQueue
|
||||
"numObjects", numObjects,
|
||||
"memObjects", memObjects,
|
||||
"numEventsInWaitList", numEventsInWaitList,
|
||||
"eventWaitList", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
"eventWaitList", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
if (retVal != CL_SUCCESS) {
|
||||
return retVal;
|
||||
}
|
||||
@@ -234,8 +234,8 @@ cl_int CL_API_CALL clEnqueueAcquireDX9MediaSurfacesKHR(cl_command_queue commandQ
|
||||
"numObjects", numObjects,
|
||||
"memObjects", memObjects,
|
||||
"numEventsInWaitList", numEventsInWaitList,
|
||||
"eventWaitList", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
"eventWaitList", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
if (retVal != CL_SUCCESS) {
|
||||
return retVal;
|
||||
}
|
||||
@@ -254,8 +254,8 @@ cl_int CL_API_CALL clEnqueueReleaseDX9MediaSurfacesKHR(cl_command_queue commandQ
|
||||
"numObjects", numObjects,
|
||||
"memObjects", memObjects,
|
||||
"numEventsInWaitList", numEventsInWaitList,
|
||||
"eventWaitList", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
"eventWaitList", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
if (retVal != CL_SUCCESS) {
|
||||
return retVal;
|
||||
}
|
||||
@@ -426,8 +426,8 @@ cl_int CL_API_CALL clEnqueueAcquireD3D10ObjectsKHR(cl_command_queue commandQueue
|
||||
"numObjects", numObjects,
|
||||
"memObjects", memObjects,
|
||||
"numEventsInWaitList", numEventsInWaitList,
|
||||
"eventWaitList", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
"eventWaitList", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
if (retVal != CL_SUCCESS) {
|
||||
return retVal;
|
||||
}
|
||||
@@ -459,8 +459,8 @@ cl_int CL_API_CALL clEnqueueReleaseD3D10ObjectsKHR(cl_command_queue commandQueue
|
||||
"numObjects", numObjects,
|
||||
"memObjects", memObjects,
|
||||
"numEventsInWaitList", numEventsInWaitList,
|
||||
"eventWaitList", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
"eventWaitList", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
if (retVal != CL_SUCCESS) {
|
||||
return retVal;
|
||||
}
|
||||
@@ -631,8 +631,8 @@ cl_int CL_API_CALL clEnqueueAcquireD3D11ObjectsKHR(cl_command_queue commandQueue
|
||||
"numObjects", numObjects,
|
||||
"memObjects", memObjects,
|
||||
"numEventsInWaitList", numEventsInWaitList,
|
||||
"eventWaitList", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
"eventWaitList", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
if (retVal != CL_SUCCESS) {
|
||||
return retVal;
|
||||
}
|
||||
@@ -664,8 +664,8 @@ cl_int CL_API_CALL clEnqueueReleaseD3D11ObjectsKHR(cl_command_queue commandQueue
|
||||
"numObjects", numObjects,
|
||||
"memObjects", memObjects,
|
||||
"numEventsInWaitList", numEventsInWaitList,
|
||||
"eventWaitList", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", DebugManager.getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
"eventWaitList", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(eventWaitList), numEventsInWaitList),
|
||||
"event", FileLoggerInstance().getEvents(reinterpret_cast<const uintptr_t *>(event), 1));
|
||||
if (retVal != CL_SUCCESS) {
|
||||
return retVal;
|
||||
}
|
||||
|
||||
@@ -247,7 +247,7 @@ GraphicsAllocation *WddmMemoryManager::createAllocationFromHandle(osHandle handl
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
DebugManager.logAllocation(allocation.get());
|
||||
FileLoggerInstance().logAllocation(allocation.get());
|
||||
return allocation.release();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user