Merge pull request #6568 from AITUS95/master

Voodoo 1: Fix Screamer Rally regression while keeping Final Racing fix
This commit is contained in:
Miran Grča
2025-12-17 10:27:04 +01:00
committed by GitHub
2 changed files with 2 additions and 2 deletions

View File

@@ -432,7 +432,7 @@ voodoo_writel(uint32_t addr, uint32_t val, void *priv)
/* Voodoo1: use higher CMDFIFO threshold to reduce wake frequency */
if (voodoo->type == VOODOO_1) {
if ((voodoo->cmdfifo_depth_wr - voodoo->cmdfifo_depth_rd) > 300)
if ((voodoo->cmdfifo_depth_wr - voodoo->cmdfifo_depth_rd) < 20)
voodoo_wake_fifo_thread(voodoo);
}
/* Other cards (Voodoo2, Banshee, Voodoo3, ...) keep the original behavior */

View File

@@ -63,7 +63,7 @@ voodoo_fifo_log(const char *fmt, ...)
#define WAKE_DELAY_DEFAULT (TIMER_USEC * 100)
/* Per-card wake delay: Voodoo1 uses a larger delay to reduce FIFO wake frequency */
#define WAKE_DELAY_OF(v) ((v)->type == VOODOO_1 ? (TIMER_USEC * 2000) : WAKE_DELAY_DEFAULT)
#define WAKE_DELAY_OF(v) ((v)->type == VOODOO_1 ? (TIMER_USEC * 500) : WAKE_DELAY_DEFAULT)
void
voodoo_wake_fifo_thread(voodoo_t *voodoo)
{