svga: Actually call fence_reference in texture downloads.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 28 Jan 2010 20:51:52 +0000 (20:51 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Tue, 9 Feb 2010 11:51:33 +0000 (11:51 +0000)
src/gallium/drivers/svga/svga_screen_texture.c

index ad7bb652787dec3e21825d7bd9ba3f1cd50ca532..12f3531a1df7a5412cc74a4610d6b1ad9c7ec199 100644 (file)
@@ -205,7 +205,7 @@ svga_transfer_dma(struct svga_transfer *st,
       if(transfer == SVGA3D_READ_HOST_VRAM) {
          svga_screen_flush(screen, &fence);
          sws->fence_finish(sws, fence, 0);
-         //sws->fence_reference(sws, &fence, NULL);
+         sws->fence_reference(sws, &fence, NULL);
       }
    }
    else {
@@ -235,7 +235,7 @@ svga_transfer_dma(struct svga_transfer *st,
             if(y) {
                svga_screen_flush(screen, &fence);
                sws->fence_finish(sws, fence, 0);
-               //sws->fence_reference(sws, &fence, NULL);
+               sws->fence_reference(sws, &fence, NULL);
             }
 
             hw = sws->buffer_map(sws, st->hwbuf, PIPE_BUFFER_USAGE_CPU_WRITE);