nvk: Enable the new UAPI

We also add a meson option to disable it and re-enable the legacy API.
This code probably won't last long but it gives developers the option.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>
This commit is contained in:
Faith Ekstrand
2023-08-03 18:32:45 -05:00
committed by Marge Bot
parent b2fe4c7729
commit 8c62b3938a
4 changed files with 23 additions and 3 deletions

View File

@@ -261,6 +261,12 @@ with_any_intel = [
].contains(true)
with_any_nouveau = with_gallium_nouveau or with_nouveau_vk
if with_nouveau_vk and get_option('nvk-legacy-uapi')
pre_args += '-DNVK_NEW_UAPI=0'
else
pre_args += '-DNVK_NEW_UAPI=1'
endif
if with_swrast_vk and not with_gallium_softpipe
error('swrast vulkan requires gallium swrast')
endif