atirage: Force redraw if pixel format changes.

This commit is contained in:
Rairii
2024-08-23 23:01:25 -07:00
committed by dingusdev
parent 116a65ce77
commit 625e474c03

View File

@@ -396,8 +396,10 @@ 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)) {
if (bit_changed(old_value, new_value, ATI_CRTC_ENABLE)
|| extract_bits(old_value, ATI_CRTC_PIX_WIDTH, ATI_CRTC_PIX_WIDTH_size) != extract_bits(new_value, ATI_CRTC_PIX_WIDTH, ATI_CRTC_PIX_WIDTH_size)
) {
draw_fb = true;
if (bit_set(new_value, ATI_CRTC_ENABLE) &&
!bit_set(new_value, ATI_CRTC_DISPLAY_DIS)) {