ati: Frame refresh if CRTC_ENABLE changes.

This commit is contained in:
joevt 2024-05-24 04:29:06 -07:00 committed by dingusdev
parent c6116fcc88
commit 116a65ce77
2 changed files with 2 additions and 0 deletions

View File

@ -510,6 +510,7 @@ void AtiMach64Gx::write_reg(uint32_t reg_offset, uint32_t value, uint32_t size)
}
if (bit_changed(old_value, new_value, ATI_CRTC_ENABLE)) {
draw_fb = true;
this->crtc_update();
}
break;

View File

@ -398,6 +398,7 @@ void ATIRage::write_reg(uint32_t reg_offset, uint32_t value, uint32_t size) {
this->regs[reg_num] = new_value;
if (bit_changed(old_value, new_value, ATI_CRTC_ENABLE)) {
draw_fb = true;
if (bit_set(new_value, ATI_CRTC_ENABLE) &&
!bit_set(new_value, ATI_CRTC_DISPLAY_DIS)) {
this->crtc_update();