Re: [PATCH v4] sm501: Fix and optimize overlap check

2020-06-30 Thread Gerd Hoffmann
On Wed, Jun 24, 2020 at 06:42:18PM +0200, BALATON Zoltan wrote: > When doing reverse blit we need to check if source and dest overlap > but it is not trivial due to possible different base and pitch of > source and dest. Do rectangle overlap if base and pitch match, > otherwise just check if memory

Re: [PATCH v4] sm501: Fix and optimize overlap check

2020-06-25 Thread Peter Maydell
On Wed, 24 Jun 2020 at 17:47, BALATON Zoltan wrote: > > When doing reverse blit we need to check if source and dest overlap > but it is not trivial due to possible different base and pitch of > source and dest. Do rectangle overlap if base and pitch match, > otherwise just check if memory area con

[PATCH v4] sm501: Fix and optimize overlap check

2020-06-24 Thread BALATON Zoltan
When doing reverse blit we need to check if source and dest overlap but it is not trivial due to possible different base and pitch of source and dest. Do rectangle overlap if base and pitch match, otherwise just check if memory area containing the rects overlaps so rects could possibly overlap. Si