Mesa (master): d3d1x: flush the pipe context when presenting

Luca Barbieri lb at kemper.freedesktop.org
Thu Sep 23 16:07:37 UTC 2010


Module: Mesa
Branch: master
Commit: 681f87e09bc278924a19fc960809556e607886f1
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=681f87e09bc278924a19fc960809556e607886f1

Author: Luca Barbieri <luca at luca-barbieri.com>
Date:   Thu Sep 23 16:02:58 2010 +0200

d3d1x: flush the pipe context when presenting

---

 .../state_trackers/d3d1x/dxgi/src/dxgi_native.cpp  |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
index 89be7f5..99d80ea 100644
--- a/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
+++ b/src/gallium/state_trackers/d3d1x/dxgi/src/dxgi_native.cpp
@@ -1139,6 +1139,8 @@ struct GalliumDXGISwapChain : public GalliumDXGIObject<IDXGISwapChain, GalliumDX
 		if(dst_surface)
 			pipe->screen->tex_surface_destroy(dst_surface);
 
+		pipe->flush(pipe, PIPE_FLUSH_RENDER_CACHE | PIPE_FLUSH_FRAME);
+
 		if(db)
 		{
 			if(!surface->swap_buffers(surface))




More information about the mesa-commit mailing list