summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2009-04-04 02:20:29 -0700
committerCorbin Simpson <MostAwesomeDude@gmail.com>2009-04-04 02:20:29 -0700
commit21f1cdbe075ee6c24ebd6db2902f19a9d33beb22 (patch)
tree98ed782c2e2edd2144dfad625ad1ce398adab30e /src
parent23639ddbaea67185c87c9e2332f10ba95723b2cb (diff)
radeon: If the CS emit fails, dump it to stderr.
Diffstat (limited to 'src')
-rw-r--r--src/gallium/winsys/drm/radeon/core/radeon_r300.c8
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 ce03bf2260..293b6c2d38 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);
}