Skip to content

Conversation

@kbalt
Copy link
Contributor

@kbalt kbalt commented Jan 9, 2026

Limits skia's vulkan version to the maximum wgpu supports.

Skia fails to initialize if the physical device supports Vulkan 1.4 but not the VK_EXT_host_image_copy extension. Since WGPU only creates an Instance with Vulkan 1.3, where the VK_EXT_host_image_copy extension isn't yet part of Vulkan Core, the function isn't properly loaded in skia's validation.

Limiting the API version makes skia not assume usage of Vulkan 1.4

@kbalt kbalt changed the title Fix skia vulkan initialization Limit supported vulkan version in skia vulkan initialization Jan 9, 2026
@kbalt kbalt changed the title Limit supported vulkan version in skia vulkan initialization Limit supported vulkan version in skia initialization Jan 9, 2026
@kbalt kbalt force-pushed the skia-vulkan-wgpu-fixes branch 2 times, most recently from 278ea3b to b1c43fa Compare January 9, 2026 02:07
@tronical
Copy link
Member

tronical commented Jan 9, 2026

cc @jturcotte

Copy link
Member

@tronical tronical left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! That makes sense, I think. One question inside :)

wgpu::TextureFormat::Rgba8Unorm => {
(skia_safe::gpu::vk::Format::R8G8B8A8_UNORM, skia_safe::ColorType::RGBA8888)
}
wgpu::TextureFormat::Rgba8UnormSrgb => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like an unintentional change. Is That correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sorry - removed it.

@kbalt kbalt force-pushed the skia-vulkan-wgpu-fixes branch from b1c43fa to b63bf6a Compare January 9, 2026 14:26
Copy link
Member

@tronical tronical left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@tronical tronical merged commit 3cd5dd7 into slint-ui:master Jan 9, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants