From d723928870eea9fc2554abe137d6e57f7ad29e98 Mon Sep 17 00:00:00 2001 From: Keith Packard Date: Sat, 27 Dec 2014 09:11:33 -0800 Subject: 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 Reviewed-by: Eric Anholt --- glamor/glamor_xv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'glamor') diff --git a/glamor/glamor_xv.c b/glamor/glamor_xv.c index 1c877da1c..83e24adb2 100644 --- a/glamor/glamor_xv.c +++ b/glamor/glamor_xv.c @@ -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: -- cgit v1.2.3