mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-27 14:00:06 +01:00
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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue