We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5522

Summary: [PATCH] Implement KMSDRM_GetWindowWMInfo()
Product: SDL Reporter: Cameron Gutman <cameron.gutman>
Component: videoAssignee: Manuel Alfayate Corchete <redwindwanderer>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: x86_64   
OS: Linux   
Attachments: Patch

Description Cameron Gutman 2021-01-31 02:04:32 UTC
This returns the DRM card index, DRM FD, and the GBM device struct (if available). The latter two are only available when libgbm is used, which only happens in the OpenGL codepath.

With this data, I'm able to get the proper EGLDisplay to use for DMA-BUF import with eglCreateImage(), use drmModeSetPlane() to update overlay planes for video, and use vaGetDisplayDRM() to get a VADisplay for VA-API video decoding.
Comment 1 Cameron Gutman 2021-01-31 02:04:58 UTC
Created attachment 4742 [details]
Patch
Comment 2 Sam Lantinga 2021-01-31 02:26:59 UTC
This looks good to me!
Comment 3 Manuel Alfayate Corchete 2021-01-31 03:05:38 UTC
ok, merged, thanks! :)