From d09664e20efeb59ededa4de3a9104bdd3b19dba5 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Mon, 1 Apr 2019 08:40:14 -0400 Subject: [PATCH] ecore-drm2: Add background_color to crtc atomic properties This patch adds a new field to the crtc atomic state which will be used to support crtc background_color property, and also fills in that state during crtc atomic state fill. @feature --- src/lib/ecore_drm2/ecore_drm2_device.c | 6 +++++- src/lib/ecore_drm2/ecore_drm2_private.h | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c index b4ca722b22..46d0f94119 100644 --- a/src/lib/ecore_drm2/ecore_drm2_device.c +++ b/src/lib/ecore_drm2/ecore_drm2_device.c @@ -268,7 +268,11 @@ _drm2_atomic_state_crtc_fill(Ecore_Drm2_Crtc_State *cstate, int fd) cstate->active.value = oprops->prop_values[i]; DBG("\t\t\tValue: %d", cstate->active.value); } - + else if (!strcmp(prop->name, "BACKGROUND_COLOR")) + { + cstate->background.id = prop->prop_id; + cstate->background.value = oprops->prop_values[i]; + } cont: sym_drmModeFreeProperty(prop); } diff --git a/src/lib/ecore_drm2/ecore_drm2_private.h b/src/lib/ecore_drm2/ecore_drm2_private.h index 62b891fcd6..56c9fe8a99 100644 --- a/src/lib/ecore_drm2/ecore_drm2_private.h +++ b/src/lib/ecore_drm2/ecore_drm2_private.h @@ -91,6 +91,7 @@ typedef struct _Ecore_Drm2_Crtc_State uint32_t obj_id; int index; Ecore_Drm2_Atomic_Property active; + Ecore_Drm2_Atomic_Property background; Ecore_Drm2_Atomic_Blob mode; } Ecore_Drm2_Crtc_State;