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.
dev
Rob Clark 13 years ago committed by Kristian Høgsberg
parent 6396ed36f4
commit 8efbc8ee62
  1. 2
      src/compositor-drm.c

@ -1227,7 +1227,7 @@ create_sprites(struct drm_compositor *ec)
sprite->compositor = ec; sprite->compositor = ec;
sprite->count_formats = plane->count_formats; sprite->count_formats = plane->count_formats;
memcpy(sprite->formats, plane->formats, memcpy(sprite->formats, plane->formats,
plane->count_formats); plane->count_formats * sizeof(plane->formats[0]));
drmModeFreePlane(plane); drmModeFreePlane(plane);
wl_list_insert(&ec->sprite_list, &sprite->link); wl_list_insert(&ec->sprite_list, &sprite->link);

Loading…
Cancel
Save