Message ID | 33183CC9F5247A488A2544077AF19020DA1E2D1B@DGGEMA505-MBS.china.huawei.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Hi, > commit d16136d22af0fcf0d651de04c9e3cbc7137cc6f9 > Author: Benjamin Herrenschmidt <benh@kernel.crashing.org> > Date: Mon Jul 7 10:32:34 2014 +1000 > > cirrus: Fix host CPU blits > So does v2 is needed? Yes, otherwise we will end up with a regression similar to the one fixed by ben. cheers, Gerd
diff --git a/hw/display/cirrus_vga_rop.h b/hw/display/cirrus_vga_rop.h index 9c7bb09..0925a00 100644 --- a/hw/display/cirrus_vga_rop.h +++ b/hw/display/cirrus_vga_rop.h @@ -52,8 +52,7 @@ glue(cirrus_bitblt_rop_fwd_, ROP_NAME)(CirrusVGAState *s, dstpitch -= bltwidth; srcpitch -= bltwidth; - if (dstpitch < 0 || srcpitch < 0) { - /* is 0 valid? srcpitch == 0 could be useful */ + if (bltheight > 1 && (dstpitch < 0 || srcpitch < 0)) { return; }