mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-03 14:55:24 +08:00
Revert "Always use unrecoverable drm context"
This reverts commit 343371faad.
Signed-off-by: Compute-Runtime-Validation <compute-runtime-validation@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
33d9c5979a
commit
040d6693cd
@@ -29,7 +29,7 @@ void IoctlHelper::fillExecObject(ExecObject &execObject, uint32_t handle, uint64
|
||||
|
||||
auto &drmExecObject = *reinterpret_cast<drm_i915_gem_exec_object2 *>(execObject.data);
|
||||
drmExecObject.handle = handle;
|
||||
drmExecObject.relocation_count = 0; // No relocations, we are SoftPinning
|
||||
drmExecObject.relocation_count = 0; //No relocations, we are SoftPinning
|
||||
drmExecObject.relocs_ptr = 0ul;
|
||||
drmExecObject.alignment = 0;
|
||||
drmExecObject.offset = gpuAddress;
|
||||
@@ -91,7 +91,9 @@ uint32_t IoctlHelper::createDrmContext(Drm &drm, OsContextLinux &osContext, uint
|
||||
drm.setNonPersistentContext(drmContextId);
|
||||
}
|
||||
|
||||
drm.setUnrecoverableContext(drmContextId);
|
||||
if (drm.getRootDeviceEnvironment().executionEnvironment.isDebuggingEnabled()) {
|
||||
drm.setUnrecoverableContext(drmContextId);
|
||||
}
|
||||
|
||||
if (debuggableContext) {
|
||||
drm.setContextDebugFlag(drmContextId);
|
||||
|
||||
Reference in New Issue
Block a user