mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-04-23 07:30:42 +02:00
glamor: fix glamor_xv_query_image_attributes() for odd-width images
Images which are one pixel wider than a multiple of 8 are being handled incorrectly. Other drivers round up the width to a multiple of two before they start calculating. Do the same. https://bugzilla.gnome.org/show_bug.cgi?id=795235 Reviewed-by: Adam Jackson <ajax@redhat.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>
This commit is contained in:
parent
ac7a4bf44c
commit
12a6b189fb
1 changed files with 1 additions and 0 deletions
|
|
@ -210,6 +210,7 @@ glamor_xv_query_image_attributes(int id,
|
|||
switch (id) {
|
||||
case FOURCC_YV12:
|
||||
case FOURCC_I420:
|
||||
*w = ALIGN(*w, 2);
|
||||
*h = ALIGN(*h, 2);
|
||||
size = ALIGN(*w, 4);
|
||||
if (pitches)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue