summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2007-01-31 15:48:52 -0800
committerEric Anholt <eric@anholt.net>2007-01-31 15:49:03 -0800
commit351866b0328b1d7afdc6b414c77d9ab4da4bd085 (patch)
tree8ffae8d7502ad50e1822bfc3bb3ea00e76e59ae2
parent96783a458957ca280ebb6275fa692dd415df6931 (diff)
Sync before overwriting Render acceleration state on the 965.
-rw-r--r--src/i965_render.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/i965_render.c b/src/i965_render.c
index 5ff174da..266b461f 100644
--- a/src/i965_render.c
+++ b/src/i965_render.c
@@ -552,10 +552,10 @@ i965_prepare_composite(int op, PicturePtr pSrcPicture,
urb_cs_start = urb_sf_start + urb_sf_size;
urb_cs_size = URB_CS_ENTRIES * URB_CS_ENTRY_SIZE;
- /* We'll be poking the state buffers that could be in use by the 3d
- * hardware here, but we should have synced the 3D engine already in
- * I830PutImage. XXX
+ /* Because we only have a single static buffer for our state currently,
+ * we have to sync before updating it every time.
*/
+ i830WaitSync(pScrn);
memset (cc_viewport, 0, sizeof (*cc_viewport));
cc_viewport->min_depth = -1.e35;