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 - [PATCH] Implement KMSDRM_GetWindowWMInfo()
Summary: [PATCH] Implement KMSDRM_GetWindowWMInfo()
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: video (show other bugs)
Version: HG 2.0
Hardware: x86_64 Linux
: P2 normal
Assignee: Manuel Alfayate Corchete
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-31 02:04 UTC by Cameron Gutman
Modified: 2021-01-31 03:05 UTC (History)
0 users

See Also:


Attachments
Patch (2.88 KB, patch)
2021-01-31 02:04 UTC, Cameron Gutman
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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! :)