Applied patch by Eric: this fixes a crash after some time (when the FIFO queue was full
for the first time). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19803 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -112,7 +112,8 @@ FifoWrite(uint32 value)
|
||||
FifoSync();
|
||||
|
||||
fifo[gSi->fifoNext / 4] = value;
|
||||
gSi->fifoNext = (gSi->fifoNext + 4) % fifoCapacity;
|
||||
gSi->fifoNext = fifo[SVGA_FIFO_MIN] +
|
||||
(gSi->fifoNext + 4 - fifo[SVGA_FIFO_MIN]) % fifoCapacity;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user