anv: provide anv_gem_busy() stub for the tests

Otherwise linking way fail.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100600
Fixes: f195d40eca ("anv/device: Add a helper for querying whether a BO is busy")
Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Juan A. Suarez Romero <jasuarez@igalia.com>
Tested-by: Vinson Lee <vlee@freedesktop.org>
This commit is contained in:
Emil Velikov 2017-04-06 13:01:26 +01:00 committed by Emil Velikov
parent 3b32ec3ba6
commit 5318d1ff94
1 changed files with 6 additions and 0 deletions

View File

@ -80,6 +80,12 @@ anv_gem_userptr(struct anv_device *device, void *mem, size_t size)
return -1;
}
int
anv_gem_busy(struct anv_device *device, uint32_t gem_handle)
{
return 0;
}
int
anv_gem_wait(struct anv_device *device, uint32_t gem_handle, int64_t *timeout_ns)
{