From: Stephane Marchesin Date: Fri, 7 Dec 2007 01:31:40 +0000 (+0100) Subject: Use write posting in the kickoff function too. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=fecb3ce5860caa498f531c28db043c3c2cb845a8;p=mesa.git Use write posting in the kickoff function too. --- diff --git a/src/mesa/drivers/dri/nouveau_winsys/nouveau_dma.c b/src/mesa/drivers/dri/nouveau_winsys/nouveau_dma.c index 6e123c44734..d3239959034 100644 --- a/src/mesa/drivers/dri/nouveau_winsys/nouveau_dma.c +++ b/src/mesa/drivers/dri/nouveau_winsys/nouveau_dma.c @@ -137,6 +137,7 @@ nouveau_dma_kickoff(struct nouveau_channel *userchan) struct nouveau_channel_priv *chan = nouveau_channel(userchan); uint32_t put_offset; int i; + volatile int dum; if (chan->dma.cur == chan->dma.put) return; @@ -188,6 +189,7 @@ nouveau_dma_kickoff(struct nouveau_channel *userchan) #endif chan->dma.put = chan->dma.cur; NOUVEAU_DMA_BARRIER; + dum = READ_GET(chan); *chan->put = put_offset; NOUVEAU_DMA_BARRIER; }