summaryrefslogtreecommitdiff
path: root/shared-core/radeon_state.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2008-11-03 09:50:46 +1000
committerDave Airlie <airlied@redhat.com>2008-11-03 09:50:46 +1000
commit28c9eb7b7493ee2478df66476c742432525f1efa (patch)
treebabf50d626049f90aa97190559b34acc1331a8d1 /shared-core/radeon_state.c
parentc153a86af7e4e782e55565f882ef2c8618650150 (diff)
radeon: commit ring after emitting the buffer discards
Diffstat (limited to 'shared-core/radeon_state.c')
-rw-r--r--shared-core/radeon_state.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/shared-core/radeon_state.c b/shared-core/radeon_state.c
index ada91362..e0a00f02 100644
--- a/shared-core/radeon_state.c
+++ b/shared-core/radeon_state.c
@@ -1884,10 +1884,11 @@ static int radeon_cp_dispatch_texture(struct drm_device * dev,
OUT_RING((image->width << 16) | height);
RADEON_WAIT_UNTIL_2D_IDLE();
ADVANCE_RING();
- COMMIT_RING();
radeon_cp_discard_buffer(dev, file_priv->master, buf);
+ COMMIT_RING();
+
/* Update the input parameters for next time */
image->y += height;
image->height -= height;