From 09becbfb04a53141b8a751053ca4c70f0f341712 Mon Sep 17 00:00:00 2001 From: joevt Date: Wed, 28 Feb 2024 15:40:21 -0800 Subject: [PATCH] atimach64gx: Add write ATI_CRTC_H_TOTAL_DISP. For debugging. --- devices/video/atimach64gx.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/devices/video/atimach64gx.cpp b/devices/video/atimach64gx.cpp index f6b7631..c4df7e2 100644 --- a/devices/video/atimach64gx.cpp +++ b/devices/video/atimach64gx.cpp @@ -368,6 +368,10 @@ void AtiMach64Gx::write_reg(uint32_t reg_offset, uint32_t value, uint32_t size) } switch (reg_num) { + case ATI_CRTC_H_TOTAL_DISP: + 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_OFF_PITCH: new_value = value; this->fb_pitch = extract_bits(new_value, ATI_CRTC_PITCH, ATI_CRTC_PITCH_size) * 8;