[Mesa-dev] [PATCH] anv: provide anv_gem_busy() stub for the tests
Juan A. Suarez Romero
jasuarez at igalia.com
Fri Apr 7 09:51:23 UTC 2017
Reviewed-by: Juan A. Suarez Romero <jasuarez at igalia.com>
On Thu, 2017-04-06 at 13:07 +0100, Emil Velikov wrote:
> From: Emil Velikov <emil.velikov at collabora.com>
>
> Otherwise linking way fail.
>
> Cc: Jason Ekstrand <jason at jlekstrand.net>
> Cc: Vinson Lee <vlee at freedesktop.org>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100600
> Fixes: f195d40eca4 ("anv/device: Add a helper for querying whether a BO is busy")
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
> Using unreachable would also do it - just staying consistent with
> surrounding code.
> ---
> src/intel/vulkan/anv_gem_stubs.c | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_gem_stubs.c b/src/intel/vulkan/anv_gem_stubs.c
> index 74794d4ffe5..a63e96d52be 100644
> --- a/src/intel/vulkan/anv_gem_stubs.c
> +++ b/src/intel/vulkan/anv_gem_stubs.c
> @@ -81,6 +81,12 @@ anv_gem_userptr(struct anv_device *device, void *mem, size_t size)
> }
>
> 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)
> {
> return 0;
More information about the mesa-dev
mailing list