From b92e9216f417c2cbd410bae0ad31829aed09dc20 Mon Sep 17 00:00:00 2001 From: joevt Date: Tue, 27 Feb 2024 03:50:46 -0800 Subject: [PATCH] atirage: Add write CRTC_VLINE_CRNT_VLINE. For VLINE interrupt (but Mac OS X doesn't use enable VLINE interrupt). --- devices/video/atirage.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devices/video/atirage.cpp b/devices/video/atirage.cpp index 6e7c15f..05ee88a 100644 --- a/devices/video/atirage.cpp +++ b/devices/video/atirage.cpp @@ -287,6 +287,10 @@ void ATIRage::write_reg(uint32_t reg_offset, uint32_t value, uint32_t size) { new_value = value; LOG_F(9, "%s: ATI_CRTC_H_TOTAL_DISP set to 0x%08X", this->name.c_str(), value); break; + case ATI_CRTC_VLINE_CRNT_VLINE: + new_value = old_value; + insert_bits(new_value, value, ATI_CRTC_VLINE, ATI_CRTC_VLINE_size); + break; case ATI_CRTC_OFF_PITCH: new_value = value; if (old_value != new_value) {