lima: use 0 to poll if BO is busy in lima_bo_wait()
authorVasily Khoruzhick <anarsoul@gmail.com>
Sun, 8 Sep 2019 02:30:39 +0000 (19:30 -0700)
committerVasily Khoruzhick <anarsoul@gmail.com>
Mon, 23 Sep 2019 02:20:59 +0000 (19:20 -0700)
commit9f897a2b4cf2c0e222487470053a69de843f2084
treee4d482d2e461d4d92432d3968cf7f2d68c26d50e
parent7f7ac21088603aa1ab70119bba3fd97317435276
lima: use 0 to poll if BO is busy in lima_bo_wait()

os_time_get_absolute_timeout(0) returns current time, while kernel
driver expects 0 as value to poll BO status and return immediately.
Fix it by setting abs_timeout to 0 if timeout_ns is 0

Reviewed-by: Qiang Yu <yuq825@gmail.com>
Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
src/gallium/drivers/lima/lima_bo.c