mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 09:14:47 +08:00
L0Debug - Notify cmdQueue create for subdevices
- PROCESS ENTRY triggered for first cmdQ created Related-To: NEO-5784 Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
92f3fe1306
commit
4da6f65d1a
@@ -186,10 +186,10 @@ static NTSTATUS runEscape(NEO::Wddm *wddm, KM_ESCAPE_INFO &escapeInfo) {
|
||||
return wddm->escape(escapeCommand);
|
||||
}
|
||||
|
||||
void DebuggerL0::notifyCommandQueueCreated() {
|
||||
void DebuggerL0::notifyCommandQueueCreated(NEO::Device *deviceIn) {
|
||||
if (device->getRootDeviceEnvironment().osInterface.get() != nullptr) {
|
||||
std::unique_lock<std::mutex> commandQueueCountLock(debuggerL0Mutex);
|
||||
if (++commandQueueCount == 1) {
|
||||
if (++commandQueueCount[0] == 1) {
|
||||
auto pWddm = device->getRootDeviceEnvironment().osInterface->getDriverModel()->as<NEO::Wddm>();
|
||||
int val = 0;
|
||||
KM_ESCAPE_INFO escapeInfo = {0};
|
||||
@@ -202,10 +202,10 @@ void DebuggerL0::notifyCommandQueueCreated() {
|
||||
}
|
||||
}
|
||||
|
||||
void DebuggerL0::notifyCommandQueueDestroyed() {
|
||||
void DebuggerL0::notifyCommandQueueDestroyed(NEO::Device *deviceIn) {
|
||||
if (device->getRootDeviceEnvironment().osInterface.get() != nullptr) {
|
||||
std::unique_lock<std::mutex> commandQueueCountLock(debuggerL0Mutex);
|
||||
if (--commandQueueCount == 0) {
|
||||
if (--commandQueueCount[0] == 0) {
|
||||
auto pWddm = device->getRootDeviceEnvironment().osInterface->getDriverModel()->as<NEO::Wddm>();
|
||||
int val = 0;
|
||||
KM_ESCAPE_INFO escapeInfo = {0};
|
||||
|
||||
Reference in New Issue
Block a user