virgl: fix checking fences
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Tue, 7 Jun 2016 12:54:34 +0000 (14:54 +0200)
committerDave Airlie <airlied@redhat.com>
Thu, 9 Jun 2016 04:07:53 +0000 (14:07 +1000)
commitdc81b3ad43dde0815baf957e7cf4c633d6f350f8
treea84df252d55c561ce1ae9e7c6df85f36986c8380
parent15896a470b2b56cefc2a00ce458fd784ed42cee9
virgl: fix checking fences

When calling virgl_fence_wait() with timeout=0,
virgl_{drm,vtest}_resource_is_busy() is called. However, it returns TRUE
for a busy resource, whereace virgl_fence_wait() should return TRUE for
a completed (non-busy) resource.

This fixes running supertuxkart in a VM (I could not reproduce locally
with vtest though there is a similar fix)

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Cc: "11.1 11.2 12.0" <mesa-stable@lists.freedesktop.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/winsys/virgl/drm/virgl_drm_winsys.c
src/gallium/winsys/virgl/vtest/virgl_vtest_winsys.c