diff options
author | BALATON Zoltan | 2020-06-24 18:42:18 +0200 |
---|---|---|
committer | Gerd Hoffmann | 2020-06-30 22:50:04 +0200 |
commit | 9982c605a71bffd4c52c111b5c79e2060953a762 (patch) | |
tree | 73ef2a7b035df327d229b5b593da1dcfc1898824 /hw/display/ati.c | |
parent | sm501: Convert debug printfs to traces (diff) | |
download | qemu-9982c605a71bffd4c52c111b5c79e2060953a762.tar.gz qemu-9982c605a71bffd4c52c111b5c79e2060953a762.tar.xz qemu-9982c605a71bffd4c52c111b5c79e2060953a762.zip |
sm501: Fix and optimize overlap check
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.
Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Message-Id: <20200624164737.A941374633D@zero.eik.bme.hu>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/display/ati.c')
0 files changed, 0 insertions, 0 deletions