summaryrefslogtreecommitdiff
path: root/src/lib/ecore_drm2
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-04-01 08:40:14 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-04-18 07:21:39 -0400
commitd09664e20efeb59ededa4de3a9104bdd3b19dba5 (patch)
tree367c99ed4819022c50ae2d12ca2783bc38d8cd5f /src/lib/ecore_drm2
parent8e0c4d83edd49063fcd0f214168710e0991e9475 (diff)
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
Diffstat (limited to 'src/lib/ecore_drm2')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c6
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_private.h1
2 files changed, 6 insertions, 1 deletions
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)
268 cstate->active.value = oprops->prop_values[i]; 268 cstate->active.value = oprops->prop_values[i];
269 DBG("\t\t\tValue: %d", cstate->active.value); 269 DBG("\t\t\tValue: %d", cstate->active.value);
270 } 270 }
271 271 else if (!strcmp(prop->name, "BACKGROUND_COLOR"))
272 {
273 cstate->background.id = prop->prop_id;
274 cstate->background.value = oprops->prop_values[i];
275 }
272cont: 276cont:
273 sym_drmModeFreeProperty(prop); 277 sym_drmModeFreeProperty(prop);
274 } 278 }
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
91 uint32_t obj_id; 91 uint32_t obj_id;
92 int index; 92 int index;
93 Ecore_Drm2_Atomic_Property active; 93 Ecore_Drm2_Atomic_Property active;
94 Ecore_Drm2_Atomic_Property background;
94 Ecore_Drm2_Atomic_Blob mode; 95 Ecore_Drm2_Atomic_Blob mode;
95} Ecore_Drm2_Crtc_State; 96} Ecore_Drm2_Crtc_State;
96 97