mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-26 10:27:23 +00:00
Check for mmio before restoring crtc/crtc2 pitch registers
This commit is contained in:
@@ -612,8 +612,11 @@ ATIRestore(KdCardInfo *card)
|
||||
ATICardInfo *atic = card->driver;
|
||||
char *mmio = atic->reg_base;
|
||||
|
||||
MMIO_OUT32(mmio, ATI_REG_CRTC_PITCH, atic->crtc_pitch);
|
||||
MMIO_OUT32(mmio, ATI_REG_CRTC2_PITCH, atic->crtc2_pitch);
|
||||
if (mmio)
|
||||
{
|
||||
MMIO_OUT32(mmio, ATI_REG_CRTC_PITCH, atic->crtc_pitch);
|
||||
MMIO_OUT32(mmio, ATI_REG_CRTC2_PITCH, atic->crtc2_pitch);
|
||||
}
|
||||
ATIUnmapReg(card, atic);
|
||||
|
||||
atic->backend_funcs.restore(card);
|
||||
|
||||
Reference in New Issue
Block a user