Disable 32-bit Z buffer on Mystique 220 and earlier

This commit is contained in:
Cacodemon345
2023-12-30 16:10:28 +06:00
committed by GitHub
parent d9bcc77615
commit 08428d497b

View File

@@ -1729,6 +1729,9 @@ mystique_accel_ctrl_write_b(uint32_t addr, uint8_t val, void *priv)
case REG_MACCESS + 3:
WRITE8(addr, mystique->maccess, val);
mystique->dwgreg.dither = mystique->maccess >> 30;
if (mystique->type < MGA_2164W)
mystique->maccess &= ~MACCESS_ZWIDTH;
else
mystique->dwgreg.z_base = mystique->dwgreg.ydstorg * ((mystique->maccess & MACCESS_ZWIDTH) ? 4 : 2) + mystique->dwgreg.zorg;
break;