Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vulkan: use pl_vk_inst_create #13829

Merged
merged 1 commit into from
Apr 7, 2024
Merged

Conversation

kasper93
Copy link
Contributor

@kasper93 kasper93 commented Apr 7, 2024

This change is mostly motivated by missing
VK_KHR_PORTABILITY_ENUMERATION_EXTENSION_NAME instance extension when enumerating the devices. Which causes issues with MoltenVK which does not advertise full Vulkan conformance.

To avoid duplicating code use pl_vk_inst_create() which correctly query availability and enables the mentioned extension.

While at it fix the VkInstance leaking in vk_validate_dev().

@kasper93 kasper93 requested a review from Akemi April 7, 2024 14:25
Copy link

github-actions bot commented Apr 7, 2024

Download the artifacts for this pull request:

Windows
macOS

Copy link
Member

@Akemi Akemi left a comment

Choose a reason for hiding this comment

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

LGTM works as intended.

This change is mostly motivated by missing
VK_KHR_portability_enumeration instance extension when enumerating the
devices. Which causes issues with MoltenVK which does not advertise full
Vulkan conformance.

To avoid duplicating code use pl_vk_inst_create() which correctly query
availability and enables the mentioned extension.

While at it fix the VkInstance leaking in vk_validate_dev().
@kasper93 kasper93 merged commit 2f76536 into mpv-player:master Apr 7, 2024
14 checks passed
@kasper93 kasper93 deleted the moltenvk branch May 6, 2024 01:50
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.

None yet

2 participants