[Mesa-dev] [PATCH] anv: provide anv_gem_supports_48b_addresses() stub for the tests

Jason Ekstrand jason at jlekstrand.net
Wed Apr 5 16:20:53 UTC 2017


We actually need a couple of other stubs as well.

On Wed, Apr 5, 2017 at 7:10 AM, Emil Velikov <emil.l.velikov at gmail.com>
wrote:

> From: Emil Velikov <emil.velikov at collabora.com>
>
> Introduce a stub to anv_gem_stub.c that matches the anv_gem.c one.
> Otherwise we may get link-time errors, when building the tests.
>
> Cc: Jason Ekstrand <jason at jlekstrand.net>
> Cc: Vinson Lee <vlee at freedesktop.org>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100574
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
>  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 30b40ce323a..c3e7afd589c 100644
> --- a/src/intel/vulkan/anv_gem_stubs.c
> +++ b/src/intel/vulkan/anv_gem_stubs.c
> @@ -144,6 +144,12 @@ anv_gem_get_aperture(int fd, uint64_t *size)
>     unreachable("Unused");
>  }
>
> +bool
> +anv_gem_supports_48b_addresses(int fd)
> +{
> +   unreachable("Unused");
> +}
> +
>  int
>  anv_gem_handle_to_fd(struct anv_device *device, uint32_t gem_handle)
>  {
> --
> 2.12.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170405/ab747538/attachment.html>


More information about the mesa-dev mailing list