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:
parent
09230a2d43
commit
d723928870
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue