[Mesa-dev] [PATCH 2/5] anv: Revive struct anv_common
Jason Ekstrand
jason at jlekstrand.net
Wed Jan 25 21:36:09 UTC 2017
On Wed, Jan 25, 2017 at 12:12 PM, Chad Versace <chadversary at chromium.org>
wrote:
> The struct was deleted by:
> commit efe9d1cde3340d3a9d17e5560b609a4fb839d43d
> Author: Edward O'Callaghan <funfunctor at folklore1984.net>
> Subject: anv: Clean up some unused variables
>
> Unlike the original anv_common, the new one has a non-const pNext
> pointer because we will use it for the output structs of
> VK_KHR_get_physical_device_properties2.
> ---
> src/intel/vulkan/anv_private.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_
> private.h
> index de50dff1a8..2a071693ca 100644
> --- a/src/intel/vulkan/anv_private.h
> +++ b/src/intel/vulkan/anv_private.h
> @@ -1831,6 +1831,11 @@ void anv_dump_finish(void);
> void anv_dump_add_framebuffer(struct anv_cmd_buffer *cmd_buffer,
> struct anv_framebuffer *fb);
>
> +struct anv_common {
> + VkStructureType sType;
> + void *pNext;
>
I've found that it's more convenient for struct walking if this is a struct
anv_common *
> +};
> +
> #define ANV_DEFINE_HANDLE_CASTS(__anv_type, __VkType)
> \
>
> \
> static inline struct __anv_type *
> \
> --
> 2.11.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20170125/ece4e073/attachment.html>
More information about the mesa-dev
mailing list