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

extensions/ext: Add VK_EXT_acquire_drm_display #668

Merged
merged 4 commits into from
Oct 11, 2022

Conversation

AidoP
Copy link
Contributor

@AidoP AidoP commented Oct 11, 2022

Note that KhronosGroup/Vulkan-ValidationLayers#4136 prevents the use of vkGetDrmDisplayEXT while using VK_LAYER_KHRONOS_validation.

@MarijnS95 MarijnS95 mentioned this pull request Oct 11, 2022
53 tasks
drm_fd: i32,
connector_id: u32,
) -> VkResult<vk::DisplayKHR> {
let mut display = mem::MaybeUninit::uninit();
Copy link
Collaborator

Choose a reason for hiding this comment

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

We've only sparsely used MaybeUninit before (only ever in VK_KHR_display), and only with zeroed() instead of uninit().

Doesn't seem like there's any harm in doing that here, so I'm willing to try that out (and hopefully schedule to replace more MaybeUninit::zeroed()/mem::zeroed()/default() calls at some point).

Copy link
Collaborator

@MarijnS95 MarijnS95 left a comment

Choose a reason for hiding this comment

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

Thanks for taking the other extension implementations by example, making this super easy to review!

@MarijnS95 MarijnS95 merged commit a4a8531 into ash-rs:master Oct 11, 2022
MarijnS95 pushed a commit that referenced this pull request Oct 16, 2022
Co-authored-by: Aidan Prangnell <aidop@trifuse.xyz>
@AidoP AidoP deleted the acquire_drm_display branch October 26, 2022 13:45
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.

3 participants