wrapper: Flush pipe on unmap
authorJakob Bornecrantz <jakob@vmware.com>
Thu, 16 Dec 2010 06:24:32 +0000 (07:24 +0100)
committerJakob Bornecrantz <jakob@vmware.com>
Thu, 16 Dec 2010 07:53:26 +0000 (08:53 +0100)
For drivers that does DMA transfers instead of mapping directly

src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c

index 77220cf..4ecfdbf 100644 (file)
@@ -246,6 +246,7 @@ wsw_dt_unmap(struct sw_winsys *ws,
 
    pipe->transfer_unmap(pipe, wdt->transfer);
    pipe->transfer_destroy(pipe, wdt->transfer);
+   pipe->flush(pipe, 0, NULL);
    wdt->transfer = NULL;
 }