Skip to content

vulkan: hide apis depending on compiler behind with_vk_compiler

Yiwei Zhang requested to merge zzyiwei/mesa:vn-only-build-fix into main

What does this MR do and why?

vulkan: hide apis depending on compiler behind with_vk_compiler

To be specific, those entrypoints using libcompiler bits (not just nir)
have enforced a hard dependency against libcompiler, forcing those
symbols to be resolved upon final linking. So we have to hide those
VK_EXT_shader_object and VkPipeline related common entries behind the
with_vk_compiler option. This makes venus-only build to work again.

Fixes: 9f62008bff5 ("vulkan: Add runtime code for VK_EXT_shader_object")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>

Before !26574 (merged) matures, we'd stop the build breakage for venus-only builders. Only 1st commit is needed, while the rest 2 commits are just tiny cleanups and fixups.

/cc @gfxstrand it'd be really appreciated if you can help take a look!

/cc @lygstate @gurchetansingh as well for the parallel efforts

Merge request reports

Loading