voodoo1: restrict increased CMDFIFO threshold to VOODOO_1 only

This commit is contained in:
AITUS95
2025-11-26 17:04:54 +01:00
committed by GitHub
parent ee48c1be89
commit 1f45cf2872

View File

@@ -431,7 +431,7 @@ voodoo_writel(uint32_t addr, uint32_t val, void *priv)
#endif
*(uint32_t *) &voodoo->fb_mem[(voodoo->cmdfifo_base + (addr & 0x3fffc)) & voodoo->fb_mask] = val;
voodoo->cmdfifo_depth_wr++;
if ((voodoo->cmdfifo_depth_wr - voodoo->cmdfifo_depth_rd) > 300)
if ((voodoo->cmdfifo_depth_wr - voodoo->cmdfifo_depth_rd) > (voodoo->type == VOODOO_1 ? 300 : 20))
voodoo_wake_fifo_thread(voodoo);
} else
switch (addr & 0x3fc) {