Comments (2)
The Vk_KHR_display extension isn't going to be useful.
To my knowledge I may be wrong there is no way to import gmb_bo directly into Vulkan. If the wayland display protocol is used one can create the underlying wl_buffer with gbm and import the wl_buffer into Vulkan to get desired content. But i'm not using any display server protocol.
The VK_EXT_image_drm_format_modifier extension is still needed.
Thinking I should create gbm_bo's and gather plane FD's/GEM handles to assign plane info to a VkImageDrmFormatModifierExplicitCreateInfoEXT structure. Then create a VkImage object with this structures address assigned to the pNext chain of the VkImageCreateInfo.
The VK_KHR_external_memory extension may be more useful.
from lucurious.
How I retrieve DMA BUF FD
- Create gbm_bo
- Retrieve number of GEM buffers with
gbm_bo_get_plane_count
. GEM buffers are wrapped by KMS framebuffers which contain metadata. - Retrieve the GEM name (u32) with
gbm_bo_get_handle_for_plane
- Create a prime fd from GEM name (u32) via
struct drm_prime_handle prime_request
andioctl(2)
- Once one has a prime fd [DMA-BUF fd] extensions needed afterwards
- VK_KHR_external_memory
- VK_KHR_external_memory_fd
- VK_EXT_external_memory_dma_buf
- VK_EXT_image_drm_format_modifier [Still not in Mesa]
from lucurious.
Related Issues (20)
- BUG: Multi VkDescriptorSetLayout HOT 1
- BUG: Image Texture Example Fix
- BUG/ENHANCEMENT: Memory Manager HOT 2
- ENHANCEMENT: Support OldSwapchain
- ENHANCEMENT: In house image loader HOT 1
- ENHANCEMENT: Present Directly to Display Devices HOT 1
- ENHANCEMENT: Add PERR macro to drm C source files
- ENHANCEMENT: lucur command line tool output
- ENHANCMENT: Validation Layers Message Callbacks HOT 1
- ENHANCMENT: Update dlu_drm_create_kms_node
- ENHANCEMENT: Implement Basic Input Handling
- ENHANCEMENT: Make ioctl calls directly
- BUG: Segfualt when free'ing [struct libinput *inp]
- Enhancment: Replace Sync Primatives
- Enhancement: Add multi plane synchronization
- BUG: Wayland Client Examples Segfault
- Enhancement: LUCUR_DRM_API rewrite HOT 1
- Please make the systemd dependency optional
- error: initializer overrides prior initialization of this subobject HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lucurious.