fix(encoder_settings): fix FTBFS when only WIVRN_USE_VULKAN

This commit is contained in:
Jonathan Steffan
2026-02-07 20:57:00 +01:00
committed by xytovl
parent 915aed8df1
commit 5ac1e06291
+6
View File
@@ -351,6 +351,7 @@ std::array<encoder_settings, 3> get_encoder_settings(wivrn_vk_bundle & bundle, c
}
};
#if WIVRN_USE_VAAPI
auto check_vaapi = [&](int bit_depth) {
for (const auto & encoder: res)
{
@@ -379,6 +380,11 @@ std::array<encoder_settings, 3> get_encoder_settings(wivrn_vk_bundle & bundle, c
}
return true;
};
#else
auto check_vaapi = [&](int) {
return true;
};
#endif
if (bit_depth == 10 and not(check_format(vk::Format::eR16Unorm) and check_vaapi(*bit_depth)))
{