From: Rob Clark <[email protected]>
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
_______________________________________________
wayland-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/wayland-devel