Which extensions to request from the vulkan device for skia?

80 views
Skip to first unread message

Alexandre Bique

unread,
May 21, 2025, 12:30:43 PMMay 21
to skia-discuss
Hi,

Until recently I was blindly activating the Vulkan device with all available extensions.

Yet this approach recently broke on Archlinux as my nvidia driver was advertising some extensions without their dependencies as well as mutually exclusive extensions.

Is there a way to ask skia which device extensions we should request? For example something like:

std::vector<std::string> getSkiaVulkanExtensions(const std::vector<std::string>& availExts);

Thank you very much.

Cheers,
Alex

Alexandre Bique

unread,
Oct 15, 2025, 1:07:05 PM (4 days ago) Oct 15
to skia-discuss
Hi,

I thought this was a dumb question as I didn't get any answers and this is maybe because I lack knowledge or missed something obvious.

So while digging further, I've confirmed with some advanced Vulkan users that a library such as Skia should provide the list of extensions it requires somewhere, or it'll be unlikely to guarantee that it'll work.

For now, I've copied the set of extensions from https://github.com/google/skia/blob/b660cf3084867655547f4ba097a4d8f305954e99/tools/gpu/vk/VkTestUtils.cpp#L196 to my code to do a similar extension selection, but this code feels quite old and has outdated comments, so I'm not sure how much in sync with Skia it is. I suspect that it is used in your test suite so, doing the same should be fine; is it optimal?

Cheers,
Alex
Reply all
Reply to author
Forward
0 new messages