Re: [Qemu-devel] [PATCH] cirrus: handle negative pitch in cirrus_invalidate_region()

2017-01-25 Thread Laszlo Ersek
On 01/25/17 14:22, Wolfgang Bumiller wrote: > >> On January 25, 2017 at 1:35 PM Laszlo Ersek wrote: >> >> >> On 01/25/17 13:12, Wolfgang Bumiller wrote: >>> cirrus_invalidate_region() calls memory_region_set_dirty() >>> on a per-line basis, always ranging from off_begin to >>> off_begin+bytesperl

Re: [Qemu-devel] [PATCH] cirrus: handle negative pitch in cirrus_invalidate_region()

2017-01-25 Thread Wolfgang Bumiller
> On January 25, 2017 at 1:35 PM Laszlo Ersek wrote: > > > On 01/25/17 13:12, Wolfgang Bumiller wrote: > > cirrus_invalidate_region() calls memory_region_set_dirty() > > on a per-line basis, always ranging from off_begin to > > off_begin+bytesperline. With a negative pitch off_begin > > marks t

Re: [Qemu-devel] [PATCH] cirrus: handle negative pitch in cirrus_invalidate_region()

2017-01-25 Thread Laszlo Ersek
On 01/25/17 13:12, Wolfgang Bumiller wrote: > cirrus_invalidate_region() calls memory_region_set_dirty() > on a per-line basis, always ranging from off_begin to > off_begin+bytesperline. With a negative pitch off_begin > marks the top most used address and thus we need to do an > initial shift back

[Qemu-devel] [PATCH] cirrus: handle negative pitch in cirrus_invalidate_region()

2017-01-25 Thread Wolfgang Bumiller
cirrus_invalidate_region() calls memory_region_set_dirty() on a per-line basis, always ranging from off_begin to off_begin+bytesperline. With a negative pitch off_begin marks the top most used address and thus we need to do an initial shift backwards by bytesperline for negative pitches of backward