mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-03 21:00:11 +01:00
Check for mmio before restoring crtc/crtc2 pitch registers
This commit is contained in:
parent
5fdff8b95e
commit
c57944cd9a
1 changed files with 5 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue