radeon: commit ring after emitting the buffer discards
authorDave Airlie <airlied@redhat.com>
Sun, 2 Nov 2008 23:50:46 +0000 (09:50 +1000)
committerDave Airlie <airlied@redhat.com>
Sun, 2 Nov 2008 23:50:46 +0000 (09:50 +1000)
shared-core/radeon_state.c

index ada9136..e0a00f0 100644 (file)
@@ -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;