ati-vga: Fix check for blt outside vram
commit349ebdd76d3a932204f5831950a2af413c29c477
authorBALATON Zoltan <balaton@eik.bme.hu>
Tue, 9 Apr 2019 10:56:18 +0000 (9 12:56 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 7 May 2019 07:55:13 +0000 (7 09:55 +0200)
treeee0d441a582cbe37758550ce2f2d5590822401e7
parent94932c95c10400acd286fd768a6b411e7ebbec8f
ati-vga: Fix check for blt outside vram

Fix the check preventing calling pixman functions that would access
memory outside allocated vram. The r128 X driver sometimes seem to try
blits that span outside vram, this check prevents crashing QEMU in
that case. (The r128 X driver may have problems even on real hardware
so I'm not sure if it's a client bug or emulation problem but at least
QEMU should survive.)

Signed-off-by: BALATON Zoltan <balaton@eik.bme.hu>
Tested-by: Andrew Randrianasulu <randrianasulu@gmail.com>
Message-Id: <20190409110732.5C5FF7465DB@zero.eik.bme.hu>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
hw/display/ati_2d.c