summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakob Bornecrantz <[email protected]>2010-12-16 07:24:32 +0100
committerJakob Bornecrantz <[email protected]>2010-12-16 08:53:26 +0100
commit0967d77a9a2a2d1e178e2b747747ba9f9caee3c2 (patch)
tree39871730fbfc4f2193a5ceef376545f44ea827f3
parent8b60bf4e9f37aa1c7bd19fed67ec50aedb9a0bee (diff)
wrapper: Flush pipe on unmap
For drivers that does DMA transfers instead of mapping directly
-rw-r--r--src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c b/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c
index 77220cf7797..4ecfdbf3915 100644
--- a/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c
+++ b/src/gallium/winsys/sw/wrapper/wrapper_sw_winsys.c
@@ -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;
}