[PATCH] kms: Output error message if cs emit fails.
Pauli Nieminen
suokkos at gmail.com
Fri Mar 19 07:02:21 PDT 2010
Signed-off-by: Pauli Nieminen <suokkos at gmail.com>
---
src/radeon_kms.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/radeon_kms.c b/src/radeon_kms.c
index 15e5e3f..599255f 100644
--- a/src/radeon_kms.c
+++ b/src/radeon_kms.c
@@ -91,7 +91,9 @@ void radeon_cs_flush_indirect(ScrnInfoPtr pScrn)
info->accel_state->vb_start_op = -1;
}
- radeon_cs_emit(info->cs);
+ ret = radeon_cs_emit(info->cs);
+ if (ret)
+ ErrorF("radeon_cs_emit failed in flush (%d)\n", ret);
radeon_cs_erase(info->cs);
if (accel_state->use_vbos)
@@ -101,7 +103,7 @@ void radeon_cs_flush_indirect(ScrnInfoPtr pScrn)
accel_state->vb_bo,
RADEON_GEM_DOMAIN_GTT, 0);
if (ret)
- ErrorF("space check failed in flush\n");
+ ErrorF("space check failed in flush (%d)\n", ret);
if (info->reemit_current2d && info->state_2d.op)
info->reemit_current2d(pScrn, info->state_2d.op);
--
1.6.3.3
More information about the xorg-driver-ati
mailing list