summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Packard <keithp@keithp.com>2014-12-27 09:11:33 -0800
committerKeith Packard <keithp@keithp.com>2014-12-28 15:12:33 -0800
commitd723928870eea9fc2554abe137d6e57f7ad29e98 (patch)
treeb3134efd982a52c955c6553741633aae4522658b
parent09230a2d435aa7f893ad5022220e3eb39ffb6db5 (diff)
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>
-rw-r--r--glamor/glamor_xv.c2
1 files changed, 1 insertions, 1 deletions
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: