mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-22 01:48:50 +08:00
Enable KMD fallback for User Fence wait call
Related-To: NEO-5845 Signed-off-by: Zbigniew Zdanowicz <zbigniew.zdanowicz@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
6c7ccddae0
commit
ad18099ed8
@@ -76,15 +76,7 @@ int BufferObject::wait(int64_t timeoutNs) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
drm_i915_gem_wait wait = {};
|
||||
wait.bo_handle = this->handle;
|
||||
wait.timeout_ns = -1;
|
||||
|
||||
int ret = this->drm->ioctl(DRM_IOCTL_I915_GEM_WAIT, &wait);
|
||||
if (ret != 0) {
|
||||
int err = errno;
|
||||
PRINT_DEBUG_STRING(DebugManager.flags.PrintDebugMessages.get(), stderr, "ioctl(I915_GEM_WAIT) failed with %d. errno=%d(%s)\n", ret, err, strerror(err));
|
||||
}
|
||||
int ret = this->drm->waitHandle(this->handle, -1);
|
||||
UNRECOVERABLE_IF(ret != 0);
|
||||
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user