venus: Fix features/properties for unavailable extensions
authorChad Versace <chadversary@chromium.org>
Fri, 19 Aug 2022 23:45:42 +0000 (16:45 -0700)
committerMarge Bot <emma+marge@anholt.net>
Wed, 14 Sep 2022 15:32:22 +0000 (15:32 +0000)
commit3a366f105503fe5ff3efafda577b2b7f87378220
tree8eae1efae7a8d21cd74aaf8815ec3ba022e3f102
parentca687bc2635c262fbdf94cd5cdeb28421aa49684
venus: Fix features/properties for unavailable extensions

In vn_physical_device_init_features() and
vn_physical_device_init_properties(), we queried many extension structs
even if the extension was unavailable. Afterwards we copied the
undefined values from the extension structs into the core structs.

Signed-off-by: Chad Versace <chadversary@chromium.org>
Reviewed-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18158>
src/virtio/vulkan/vn_physical_device.c