Mesa (master): radeon: If the CS emit fails, dump it to stderr.
Corbin Simpson
csimpson at kemper.freedesktop.org
Sat Apr 4 09:44:03 UTC 2009
Module: Mesa
Branch: master
Commit: 21f1cdbe075ee6c24ebd6db2902f19a9d33beb22
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=21f1cdbe075ee6c24ebd6db2902f19a9d33beb22
Author: Corbin Simpson <MostAwesomeDude at gmail.com>
Date: Sat Apr 4 02:20:29 2009 -0700
radeon: If the CS emit fails, dump it to stderr.
---
src/gallium/winsys/drm/radeon/core/radeon_r300.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_r300.c b/src/gallium/winsys/drm/radeon/core/radeon_r300.c
index ce03bf2..293b6c2 100644
--- a/src/gallium/winsys/drm/radeon/core/radeon_r300.c
+++ b/src/gallium/winsys/drm/radeon/core/radeon_r300.c
@@ -39,7 +39,13 @@ static void radeon_r300_write_cs_reloc(struct radeon_cs* cs,
static void radeon_r300_flush_cs(struct radeon_cs* cs)
{
- radeon_cs_emit(cs);
+ int retval = 0;
+
+ retval = radeon_cs_emit(cs);
+ if (retval) {
+ debug_printf("radeon: Bad CS, dumping...\n");
+ radeon_cs_print(cs, stderr);
+ }
radeon_cs_erase(cs);
}
More information about the mesa-commit
mailing list