mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 21:40:08 +01:00
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 <chris@chris-wilson.co.uk> Acked-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
parent
b97bcf3b6b
commit
a29fb9b2ee
1 changed files with 0 additions and 16 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue