Skip to content

Commit

Permalink
Actually track GXFIFO test commands properly
Browse files Browse the repository at this point in the history
Fixes regression from 2155aaa; games using box or pos tests would
lock up
  • Loading branch information
Hydr8gon committed May 17, 2022
1 parent 77a76ff commit e0eafcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gpu_3d.cpp
Expand Up @@ -1447,7 +1447,7 @@ void Gpu3D::boxTestCmd(std::vector<uint32_t> &params)
};

// Clear the busy bit if no more test commands are queued
if (--testQueue == 0)
if ((testQueue -= 3) == 0)
gxStat &= ~BIT(0);

// Clip the faces of the box
Expand Down Expand Up @@ -1492,7 +1492,7 @@ void Gpu3D::posTestCmd(std::vector<uint32_t> &params)
posResult[3] = vertex.w;

// Clear the busy bit if no more test commands are queued
if (--testQueue == 0)
if ((testQueue -= 2) == 0)
gxStat &= ~BIT(0);
}

Expand Down

0 comments on commit e0eafcb

Please sign in to comment.