[Mesa-dev] [PATCH v2] anv: provide required gem stubs for the tests

Jason Ekstrand jason at jlekstrand.net
Wed Apr 5 17:04:55 UTC 2017


I just sent exactly the same patch. :-)  I don't care which we land

Reviewed-by: Jason Ekstrand <jason at jlekstrand.net>

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

> From: Emil Velikov <emil.velikov at collabora.com>
>
> Introduce stubs to anv_gem_stub.c that match the anv_gem.c ones.
> Otherwise we may get link-time errors, when building the tests.
>
> v2: Introduce all the missing stubs at once.
>
> Cc: Jason Ekstrand <jason at jlekstrand.net>
> Cc: Vinson Lee <vlee at freedesktop.org>
> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=100574
> Fixes: c964f0e485d ("anv: Query the kernel for reset status")
> Fixes: 651ec926fc1 ("anv: Add support for 48-bit addresses")
> Fixes: 060a6434eca ("anv: Advertise larger heap sizes")
> Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
> ---
> I've intentionally kept the order the same identical to the anv_gem.c.
> This way we can easily grep & diff in the future ;-)
> ---
>  src/intel/vulkan/anv_gem_stubs.c | 19 +++++++++++++++++++
>  1 file changed, 19 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_gem_stubs.c b/src/intel/vulkan/anv_gem_
> stubs.c
> index 30b40ce323a..74794d4ffe5 100644
> --- a/src/intel/vulkan/anv_gem_stubs.c
> +++ b/src/intel/vulkan/anv_gem_stubs.c
> @@ -139,11 +139,30 @@ anv_gem_destroy_context(struct anv_device *device,
> int context)
>  }
>
>  int
> +anv_gem_get_context_param(int fd, int context, uint32_t param, uint64_t
> *value)
> +{
> +   unreachable("Unused");
> +}
> +
> +int
>  anv_gem_get_aperture(int fd, uint64_t *size)
>  {
>     unreachable("Unused");
>  }
>
> +bool
> +anv_gem_supports_48b_addresses(int fd)
> +{
> +   unreachable("Unused");
> +}
> +
> +int
> +anv_gem_gpu_get_reset_stats(struct anv_device *device,
> +                            uint32_t *active, uint32_t *pending)
> +{
> +   unreachable("Unused");
> +}
> +
>  int
>  anv_gem_handle_to_fd(struct anv_device *device, uint32_t gem_handle)
>  {
> --
> 2.11.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170405/3b6b4832/attachment.html>


More information about the mesa-dev mailing list