aboutsummaryrefslogtreecommitdiff
path: root/backend/drm
diff options
context:
space:
mode:
authorSimon Ser <contact@emersion.fr>2020-12-18 11:44:50 +0100
committerSimon Ser <contact@emersion.fr>2020-12-18 11:44:50 +0100
commit352fdd1bb00a3547591f9360b23c5c2fd22e97e4 (patch)
tree57883f16076249cbaf36de4e200212c9dc5d84d9 /backend/drm
parent248c7787c7b487ff4157bfef38662776ea7b38d9 (diff)
backend/drm: remove unused wlr_drm_plane.drm_format
Diffstat (limited to 'backend/drm')
-rw-r--r--backend/drm/drm.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/backend/drm/drm.c b/backend/drm/drm.c
index 5395e418..bdd0b1e4 100644
--- a/backend/drm/drm.c
+++ b/backend/drm/drm.c
@@ -105,21 +105,6 @@ static bool add_plane(struct wlr_drm_backend *drm,
DRM_FORMAT_MOD_INVALID);
}
- // Choose an RGB format for the plane
- uint32_t rgb_format = DRM_FORMAT_INVALID;
- for (size_t j = 0; j < drm_plane->count_formats; ++j) {
- uint32_t fmt = drm_plane->formats[j];
-
- if (fmt == DRM_FORMAT_ARGB8888) {
- // Prefer formats with alpha channel
- rgb_format = fmt;
- break;
- } else if (fmt == DRM_FORMAT_XRGB8888) {
- rgb_format = fmt;
- }
- }
- p->drm_format = rgb_format;
-
if (p->props.in_formats) {
uint64_t blob_id;
if (!get_drm_prop(drm->fd, p->id, p->props.in_formats, &blob_id)) {