diff options
author | Rob Clark <rob@ti.com> | 2012-03-11 19:48:44 -0500 |
---|---|---|
committer | Kristian Høgsberg <krh@bitplanet.net> | 2012-03-12 01:16:13 -0400 |
commit | 8efbc8ee621edac19341f993624c6d5a27686803 (patch) | |
tree | 26b91f188a20e492eff738143ece23e0beadf2c4 | |
parent | 6396ed36f46456626a74d2a8b3487d9317ac7b67 (diff) |
drm: fix issue copying supported plane formats
Originally on the first 1/4th of the plane formats were copied, leading
to problems if AR24/XR24 appears later in the list.
-rw-r--r-- | 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 ba376eb..edeb0ab 100644 --- a/src/compositor-drm.c +++ b/src/compositor-drm.c @@ -1227,7 +1227,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); |