Use write posting in the kickoff function too.
authorStephane Marchesin <marchesin@icps.u-strasbg.fr>
Fri, 7 Dec 2007 01:31:40 +0000 (02:31 +0100)
committerStephane Marchesin <marchesin@icps.u-strasbg.fr>
Fri, 7 Dec 2007 01:31:40 +0000 (02:31 +0100)
src/mesa/drivers/dri/nouveau_winsys/nouveau_dma.c

index 6e123c44734a46d1d7c726dc0cf0efe43cf83025..d3239959034752130569c06402ebfce5272d64f5 100644 (file)
@@ -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;
 }