mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
ilo: fix intel_bo_wait() on kernel 3.17
drm_intel_gem_bo_wait() with negative timeout is broken on kernel 3.17. Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
This commit is contained in:
parent
93a92d2c69
commit
29253f44d0
1 changed files with 7 additions and 1 deletions
|
|
@ -610,7 +610,13 @@ intel_bo_wait(struct intel_bo *bo, int64_t timeout)
|
|||
{
|
||||
int err;
|
||||
|
||||
err = drm_intel_gem_bo_wait(gem_bo(bo), timeout);
|
||||
if (timeout >= 0) {
|
||||
err = drm_intel_gem_bo_wait(gem_bo(bo), timeout);
|
||||
} else {
|
||||
drm_intel_bo_wait_rendering(gem_bo(bo));
|
||||
err = 0;
|
||||
}
|
||||
|
||||
/* consider the bo idle on errors */
|
||||
if (err && err != -ETIME)
|
||||
err = 0;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue