Mesa (master): svga: Don't call swc->flush directly.

Jose Fonseca jrfonseca at kemper.freedesktop.org
Thu Feb 3 07:15:32 PST 2011


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

Author: José Fonseca <jfonseca at vmware.com>
Date:   Thu Feb  3 15:02:07 2011 +0000

svga: Don't call swc->flush directly.

Only svga_context_flush should do it, to ensure upload commands are not
submitted to hardware in an inconsistent state.

---

 src/gallium/drivers/svga/svga_resource_texture.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c
index 7c9e600..2135471 100644
--- a/src/gallium/drivers/svga/svga_resource_texture.c
+++ b/src/gallium/drivers/svga/svga_resource_texture.c
@@ -204,7 +204,7 @@ svga_transfer_dma_band(struct svga_context *svga,
 
    ret = SVGA3D_SurfaceDMA(svga->swc, st, transfer, &box, 1);
    if(ret != PIPE_OK) {
-      svga->swc->flush(svga->swc, NULL);
+      svga_context_flush(svga, NULL);
       ret = SVGA3D_SurfaceDMA(svga->swc, st, transfer, &box, 1);
       assert(ret == PIPE_OK);
    }



More information about the mesa-commit mailing list