mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Always use unrecoverable drm context
Signed-off-by: Dunajski, Bartosz <bartosz.dunajski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
308f54e4eb
commit
a9ba581d97
@@ -106,6 +106,8 @@ int DrmMock::ioctl(DrmIoctl request, void *arg) {
|
||||
receivedContextParamRequestCount++;
|
||||
receivedContextParamRequest = *reinterpret_cast<GemContextParam *>(&receivedContextCreateSetParam.param);
|
||||
if (receivedContextCreateSetParam.param.param == I915_CONTEXT_PARAM_VM) {
|
||||
this->requestSetVmId = receivedContextParamRequest.value;
|
||||
|
||||
return this->storedRetVal;
|
||||
}
|
||||
}
|
||||
@@ -152,10 +154,12 @@ int DrmMock::ioctl(DrmIoctl request, void *arg) {
|
||||
return this->storedRetValForPersistant;
|
||||
}
|
||||
if (receivedContextParamRequest.param == I915_CONTEXT_PARAM_VM) {
|
||||
this->requestSetVmId = receivedContextParamRequest.value;
|
||||
return this->storedRetVal;
|
||||
}
|
||||
if (receivedContextParamRequest.param == I915_CONTEXT_PARAM_RECOVERABLE) {
|
||||
receivedRecoverableContextValue = receivedContextParamRequest.value;
|
||||
unrecoverableContextSet = true;
|
||||
return this->storedRetVal;
|
||||
}
|
||||
}
|
||||
@@ -226,7 +230,7 @@ int DrmMock::ioctl(DrmIoctl request, void *arg) {
|
||||
if (request == DrmIoctl::PrimeFdToHandle) {
|
||||
ioctlCount.primeFdToHandle++;
|
||||
auto primeToHandleParams = static_cast<PrimeHandle *>(arg);
|
||||
//return BO
|
||||
// return BO
|
||||
primeToHandleParams->handle = outputHandle;
|
||||
inputFd = primeToHandleParams->fileDescriptor;
|
||||
return fdToHandleRetVal;
|
||||
|
||||
Reference in New Issue
Block a user