From a29fb9b2ee49a66332dcb118877fa15eb430608d Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Wed, 22 Mar 2017 15:28:07 -0700 Subject: [PATCH] i965/drm: Drop has_wait_timeout. The wait-ioctl was introduced in kernel v3.6 (20120930) and that is our current minimum requirement for screen creation. Reviewed-by: Chris Wilson Acked-by: Jason Ekstrand --- src/mesa/drivers/dri/i965/intel_bufmgr_gem.c | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c b/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c index 339e2034b06..8f9fbdf74be 100644 --- a/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c +++ b/src/mesa/drivers/dri/i965/intel_bufmgr_gem.c @@ -151,7 +151,6 @@ typedef struct _drm_bacon_bufmgr { unsigned int has_bsd : 1; unsigned int has_blt : 1; unsigned int has_llc : 1; - unsigned int has_wait_timeout : 1; unsigned int bo_reuse : 1; unsigned int no_exec : 1; unsigned int has_vebox : 1; @@ -1663,17 +1662,6 @@ drm_bacon_gem_bo_wait(drm_bacon_bo *bo, int64_t timeout_ns) struct drm_i915_gem_wait wait; int ret; - if (!bufmgr->has_wait_timeout) { - DBG("%s:%d: Timed wait is not supported. Falling back to " - "infinite wait\n", __FILE__, __LINE__); - if (timeout_ns) { - drm_bacon_bo_wait_rendering(bo); - return 0; - } else { - return drm_bacon_bo_busy(bo) ? -ETIME : 0; - } - } - memclear(wait); wait.bo_handle = bo_gem->gem_handle; wait.timeout_ns = timeout_ns; @@ -3062,10 +3050,6 @@ drm_bacon_bufmgr_gem_init(int fd, int batch_size) ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GETPARAM, &gp); bufmgr->has_exec_async = ret == 0; - gp.param = I915_PARAM_HAS_WAIT_TIMEOUT; - ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GETPARAM, &gp); - bufmgr->has_wait_timeout = ret == 0; - gp.param = I915_PARAM_HAS_LLC; ret = drmIoctl(bufmgr->fd, DRM_IOCTL_I915_GETPARAM, &gp); if (ret != 0) { -- 2.30.2