summaryrefslogtreecommitdiff
path: root/src/i830_render.c
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2009-04-20 15:46:11 -0700
committerEric Anholt <eric@anholt.net>2009-04-21 15:28:55 -0700
commit928a37041defcca6f57f9452ba62e67524cb4510 (patch)
tree10d8fcc888b59e198aae69499416580c113a2c4e /src/i830_render.c
parent1fc93ee184ceefaea9528bb46ae82884c44d9b36 (diff)
Replace a bunch of #ifdef debug flushing/syncing with a single function.
This removes it from a callsite where it would have just resulted in a fatalerror.
Diffstat (limited to 'src/i830_render.c')
-rw-r--r--src/i830_render.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/i830_render.c b/src/i830_render.c
index 5696fa3d..4ca4e338 100644
--- a/src/i830_render.c
+++ b/src/i830_render.c
@@ -345,10 +345,7 @@ i830_texture_setup(PicturePtr pPict, PixmapPtr pPix, int unit)
ADVANCE_BATCH();
}
-#ifdef I830DEBUG
- ErrorF("try to sync to show any errors...");
- I830Sync(pScrn);
-#endif
+ i830_debug_sync(pScrn);
return TRUE;
}
@@ -569,10 +566,7 @@ i830_prepare_composite(int op, PicturePtr pSrcPicture,
ADVANCE_BATCH();
}
-#ifdef I830DEBUG
- Error("try to sync to show any errors...");
- I830Sync(pScrn);
-#endif
+ i830_debug_sync(pScrn);
return TRUE;
}