atirage: Add write CRTC_VLINE_CRNT_VLINE.

For VLINE interrupt (but Mac OS X doesn't use enable VLINE interrupt).
This commit is contained in:
joevt 2024-02-27 03:50:46 -08:00 committed by dingusdev
parent 6ff5079df8
commit b92e9216f4
1 changed files with 4 additions and 0 deletions

View File

@ -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<uint32_t>(new_value, value, ATI_CRTC_VLINE, ATI_CRTC_VLINE_size);
break;
case ATI_CRTC_OFF_PITCH:
new_value = value;
if (old_value != new_value) {