venus: add macros to help with future extensions
authorIgor Torrente <igor.torrente@collabora.com>
Thu, 17 Feb 2022 13:57:51 +0000 (10:57 -0300)
committerMarge Bot <emma+marge@anholt.net>
Thu, 24 Feb 2022 15:55:57 +0000 (15:55 +0000)
commitb130f8f4cfceb5a3f8e22851026f346ecd8e2105
tree08194bb0ed66f98f299c00f445137ee17d93c853
parent43bbe367ea5239439a2f480c7b82b0ebfef2e826
venus: add macros to help with future extensions

Currently we have to add almost the same code to the
`vn_physical_device_init_{features, properties}` to add
the extension to the `physical_dev->{features, properties}`
list.

These macros improves the code reusage.

Signed-off-by: Igor Torrente <igor.torrente@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15059>
src/virtio/vulkan/vn_physical_device.c