[PATCH 4/5] drm: fix issue copying supported plane formats
Rob Clark
rob.clark at linaro.org
Sun Mar 11 17:48:44 PDT 2012
From: Rob Clark <rob at ti.com>
Originally on the first 1/4th of the plane formats were copied, leading
to problems if AR24/XR24 appears later in the list.
---
src/compositor-drm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/compositor-drm.c b/src/compositor-drm.c
index cf9a937..c8e6eaf 100644
--- a/src/compositor-drm.c
+++ b/src/compositor-drm.c
@@ -1230,7 +1230,7 @@ create_sprites(struct drm_compositor *ec)
sprite->compositor = ec;
sprite->count_formats = plane->count_formats;
memcpy(sprite->formats, plane->formats,
- plane->count_formats);
+ plane->count_formats * sizeof(plane->formats[0]));
drmModeFreePlane(plane);
wl_list_insert(&ec->sprite_list, &sprite->link);
--
1.7.5.4
More information about the wayland-devel
mailing list