diff --git a/src/nv_crtc.c b/src/nv_crtc.c index 320b8f9..7c98743 100644 --- a/src/nv_crtc.c +++ b/src/nv_crtc.c @@ -1326,6 +1326,9 @@ static void nv_crtc_load_state_vga(xf86CrtcPtr crtc, RIVA_HW_STATE *state) for (i = 0; i < 5; i++) NVWriteVgaSeq(pNv, nv_crtc->head, i, regp->Sequencer[i]); + ErrorF("head 0 lock state %d, head 1 lock state %d\n", NVReadVgaCrtc(pNv, 0, NV_CIO_SR_LOCK_INDEX), NVReadVgaCrtc(pNv, 1, NV_CIO_SR_LOCK_INDEX)); + for (i = 0; i < 8; i++) + ErrorF("going to write 0x%02x to CR%d, head %d\n", regp->CRTC[i], i, nv_crtc->head); for (i = 0; i < 25; i++) crtc_wr_cio_state(crtc, regp, i); diff --git a/src/nv_hw.c b/src/nv_hw.c index 2786e0d..6b6081a 100644 --- a/src/nv_hw.c +++ b/src/nv_hw.c @@ -282,6 +282,7 @@ static void NVLockVgaCrtc(NVPtr pNv, int head, bool lock) { uint8_t cr11; + ErrorF("%slocking head %d\n", lock ? "" : "un", head); NVWriteVgaCrtc(pNv, head, NV_CIO_SR_LOCK_INDEX, lock ? NV_CIO_SR_LOCK_VALUE : NV_CIO_SR_UNLOCK_RW_VALUE);