From: José Fonseca Date: Thu, 3 Feb 2011 15:02:07 +0000 (+0000) Subject: svga: Don't call swc->flush directly. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5c296a583dd0e93188117188f1d0083057c31eac;p=mesa.git 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. --- diff --git a/src/gallium/drivers/svga/svga_resource_texture.c b/src/gallium/drivers/svga/svga_resource_texture.c index 7c9e600b9f4..213547115a4 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); }