Remove Vulkan support for PowerVR devices below Vulkan 1.3 (#11284) f15e7dd47a

Due to issues with early PowerVR drivers, GL is recommended for these devices

Co-authored-by: Josh Jersild <joshua@rive.app>
This commit is contained in:
JoshJRive
2025-12-16 02:49:50 +00:00
parent 5f503f6f8c
commit 315c683b56
2 changed files with 10 additions and 1 deletions

View File

@@ -1 +1 @@
7564ef1fcba0c6b2c387c52734c5590774c81f60
f15e7dd47abf3e8f4bbdd8731a2f8029a1bea040

View File

@@ -3273,6 +3273,15 @@ std::unique_ptr<RenderContext> RenderContextVulkanImpl::MakeContext(
return nullptr;
}
if (vk->physicalDeviceProperties().vendorID == VULKAN_VENDOR_IMG_TEC &&
vk->physicalDeviceProperties().apiVersion < VK_API_VERSION_1_3)
{
fprintf(
stderr,
"ERROR: Rive Vulkan renderer requires a driver that supports at least Vulkan 1.3 on PowerVR chipsets.\n");
return nullptr;
}
std::unique_ptr<RenderContextVulkanImpl> impl(
new RenderContextVulkanImpl(std::move(vk), contextOptions));