nouveau: fix elusive dma bug
authorBen Skeggs <skeggsb@gmail.com>
Mon, 10 Dec 2007 04:16:05 +0000 (15:16 +1100)
committerBen Skeggs <skeggsb@gmail.com>
Mon, 10 Dec 2007 04:17:20 +0000 (15:17 +1100)
commit3b2598c70bce098ea8c43ff37862bcce1663514b
treec6fc30b811f4aa4045562fb271c9426785022e06
parent7d8368790fabc19e51add0fd9f1d1f85b7803cdf
nouveau: fix elusive dma bug

In some situations WAIT_RING would get called while the GPU was processing
data from outside the "master" ring, which caused dma.free to be updated
incorrectly and much fun was had.

WAIT_RING will now wait until it reads GET values from within the main ring
buffer before calculating free space.
src/mesa/drivers/dri/nouveau_winsys/nouveau_dma.c