Skip to content

Comments

Update drm api#173

Merged
kdj0c merged 2 commits intokmscon:mainfrom
kdj0c:update_drm_api
Dec 12, 2025
Merged

Update drm api#173
kdj0c merged 2 commits intokmscon:mainfrom
kdj0c:update_drm_api

Conversation

@kdj0c
Copy link
Contributor

@kdj0c kdj0c commented Dec 9, 2025

Uses libdrm helpers, and use drmModeAddFB2().

Jocelyn Falempe added 2 commits December 9, 2025 17:22
drm2d directly calls the ioctl, but it's cleaner to use the libdrm's
helpers.
Addfb is deprecated for a long time, so use Addfb2, which allows to
specify the pixel format.

Signed-off-by: Jocelyn Falempe <[email protected]>
drmModeAddFB is deprecated, as the pixel format can't be specified
Also gbm_bo_get_stride() replaced gbm_bo_get_pitch 13 years ago.

Signed-off-by: Jocelyn Falempe <[email protected]>
@kdj0c kdj0c merged commit e7f569c into kmscon:main Dec 12, 2025
2 checks passed
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.

1 participant