Commit d7239288 authored by Keith Packard's avatar Keith Packard

glamor: Fix nlines in glamor_xv_put_image when src_y is odd

The number of lines of video to update in the texture needs to be
computed from the height of the updated source, not the full height of
the source.
Signed-off-by: Keith Packard's avatarKeith Packard <>
Reviewed-by: Eric Anholt's avatarEric Anholt <>
parent 09230a2d
......@@ -435,7 +435,7 @@ glamor_xv_put_image(glamor_port_private *port_priv,
top = (src_y) & ~1;
nlines = (src_y + height) - top;
nlines = (src_y + src_h) - top;
switch (id) {
case FOURCC_YV12:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment