diff options
author | Ben Skeggs <[email protected]> | 2006-11-19 15:45:36 +0000 |
---|---|---|
committer | Ben Skeggs <[email protected]> | 2006-11-19 15:45:36 +0000 |
commit | b3fd1556f9e94d6d6f6d3933c404fc37aec7b1a3 (patch) | |
tree | c403110a86e41e185fb5112f89eb886eb52760d2 /src/mesa/drivers/dri/nouveau/nouveau_fifo.h | |
parent | 08a0946fcc51a0980d1d7a06e11d72ef71efafcf (diff) |
More FIFO fixes.
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nouveau_fifo.h')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nouveau_fifo.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nouveau_fifo.h b/src/mesa/drivers/dri/nouveau/nouveau_fifo.h index 58fb378c39a..c5e5d6934fe 100644 --- a/src/mesa/drivers/dri/nouveau/nouveau_fifo.h +++ b/src/mesa/drivers/dri/nouveau/nouveau_fifo.h @@ -100,9 +100,10 @@ extern void WAIT_RING(nouveauContextPtr nmesa,u_int32_t size); }while(0) #define BEGIN_RING_SIZE(subchannel,tag,size) do { \ - if (nmesa->fifo.free<size) \ + if (nmesa->fifo.free <= (size)) \ WAIT_RING(nmesa,(size)); \ - OUT_RING( (size<<18) | ((subchannel) << 13) | (tag)); \ + OUT_RING( ((size)<<18) | ((subchannel) << 13) | (tag)); \ + nmesa->fifo.free -= ((size) + 1); \ }while(0) #define RING_AVAILABLE() (nmesa->fifo.free-1) |