From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRLwj-0007Es-Si for qemu-devel@nongnu.org; Fri, 27 Feb 2015 09:31:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YRLwd-00049Q-Oj for qemu-devel@nongnu.org; Fri, 27 Feb 2015 09:31:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YRLwd-00048C-Hj for qemu-devel@nongnu.org; Fri, 27 Feb 2015 09:31:11 -0500 Message-ID: <1425047464.20883.60.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Fri, 27 Feb 2015 15:31:04 +0100 In-Reply-To: <54F07D31.2000100@redhat.com> References: <1424687012-18524-1-git-send-email-kraxel@redhat.com> <1424687012-18524-7-git-send-email-kraxel@redhat.com> <54EF44F1.1090507@redhat.com> <1425035430.20883.44.camel@nilsson.home.kraxel.org> <54F07D31.2000100@redhat.com> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [RfC PATCH 06/15] virtio-gpu/2d: add virtio gpu core code List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Max Reitz Cc: Dave Airlie , qemu-devel@nongnu.org, Anthony Liguori , "Michael S. Tsirkin" > >>> + if (t2d.offset || t2d.r.x || t2d.r.y || > >>> + t2d.r.width != pixman_image_get_width(res->image)) { > >> Will this work with stride != t2d.r.width * bpp? > > Those cases should take the if branch above and loop over all lines to > > handle it correctly. > > Exactly, but it looks like to me that it doesn't (at least not always). Ah, you mean we should better check something like t2d.r.width * bpp != pixman_image_get_stride() ? That should check exactly the same thing as we never create resources with extra padding where width * bpp != stride. cheers, Gerd