Revert "Set cooperative flag for debuggable contexts during creation"

This reverts commit 5e0732f57e.

Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
Compute-Runtime-Validation
2022-02-13 04:04:31 +01:00
committed by Compute-Runtime-Automation
parent 6fe91498d8
commit 5ec8c004ce
4 changed files with 5 additions and 77 deletions

View File

@@ -45,22 +45,19 @@ void OsContextLinux::initializeContext() {
this->drmVmIds.resize(deviceBitfield.size(), 0);
}
const bool debuggableContext = drm.isContextDebugSupported() && drm.getRootDeviceEnvironment().executionEnvironment.isDebuggingEnabled() && !isInternalEngine();
for (auto deviceIndex = 0u; deviceIndex < deviceBitfield.size(); deviceIndex++) {
if (deviceBitfield.test(deviceIndex)) {
auto drmVmId = drm.getVirtualMemoryAddressSpace(deviceIndex);
auto drmContextId = drm.createDrmContext(drmVmId, drm.isVmBindAvailable(), isCooperativeEngine() || debuggableContext);
auto drmContextId = drm.createDrmContext(drmVmId, drm.isVmBindAvailable(), isCooperativeEngine());
if (drm.areNonPersistentContextsSupported()) {
drm.setNonPersistentContext(drmContextId);
}
if (drm.getRootDeviceEnvironment().executionEnvironment.isDebuggingEnabled()) {
drm.setUnrecoverableContext(drmContextId);
}
if (debuggableContext) {
drm.setContextDebugFlag(drmContextId);
if (!isInternalEngine()) {
drm.setContextDebugFlag(drmContextId);
}
}
if (drm.isPreemptionSupported() && isLowPriority()) {