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 <keithp@keithp.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Keith Packard 2014-12-27 09:11:33 -08:00
parent 09230a2d43
commit d723928870
1 changed files with 1 additions and 1 deletions

View File

@ -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: