summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2011-02-03 15:02:07 +0000
committerJosé Fonseca <[email protected]>2011-02-03 15:15:23 +0000
commit5c296a583dd0e93188117188f1d0083057c31eac (patch)
tree1aad9233fb85fdad557c982fc6fb6f871b92fd70 /src/gallium/drivers
parent9d4488e4a8bba2bce89d2c348ddc57ced2c6f6cd (diff)
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.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/svga/svga_resource_texture.c2
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 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);
}