aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/ecore_drm2/ecore_drm2_device.c
diff options
context:
space:
mode:
authorChris Michael <cp.michael@samsung.com>2017-03-27 10:50:52 -0400
committerChris Michael <cp.michael@samsung.com>2017-04-18 07:55:10 -0400
commit4f8f41299fae4fdefb14b64ecbb02e371aa7c513 (patch)
treeb84bf50a27588ff1ab2f3b7282e88ca73ace5b74 /src/lib/ecore_drm2/ecore_drm2_device.c
parentecore-drm2: Remove old atomic flipping code (diff)
downloadefl-4f8f41299fae4fdefb14b64ecbb02e371aa7c513.tar.gz
ecore-drm2: Add support for plane formats
Small patch to store supported formats on a given plane state. This will be used for assigning dmabuf clients to a hardware plane based on size and supported format. @feature Signed-off-by: Chris Michael <cp.michael@samsung.com>
Diffstat (limited to 'src/lib/ecore_drm2/ecore_drm2_device.c')
-rw-r--r--src/lib/ecore_drm2/ecore_drm2_device.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/ecore_drm2/ecore_drm2_device.c b/src/lib/ecore_drm2/ecore_drm2_device.c
index 03f21d8238..6d7c1ff78f 100644
--- a/src/lib/ecore_drm2/ecore_drm2_device.c
+++ b/src/lib/ecore_drm2/ecore_drm2_device.c
@@ -546,6 +546,9 @@ _drm2_atomic_state_fill(Ecore_Drm2_Atomic_State *state, int fd)
pstate = &state->plane_states[i];
pstate->obj_id = pres->planes[i];
pstate->mask = plane->possible_crtcs;
+ pstate->num_formats = plane->count_formats;
+ memcpy(pstate->formats, plane->formats,
+ plane->count_formats * sizeof(plane->formats[0]));
sym_drmModeFreePlane(plane);