projects
/
profile
/
ivi
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6396ed3
)
drm: fix issue copying supported plane formats
author
Rob Clark
<rob@ti.com>
Mon, 12 Mar 2012 00:48:44 +0000
(19:48 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Mon, 12 Mar 2012 05:16:13 +0000
(
01:16
-0400)
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
patch
|
blob
|
history
diff --git
a/src/compositor-drm.c
b/src/compositor-drm.c
index
ba376eb
..
edeb0ab
100644
(file)
--- 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);