diff options
author | Dave Airlie <airliedfreedesktop.org> | 2005-01-23 06:27:08 +0000 |
---|---|---|
committer | Dave Airlie <airliedfreedesktop.org> | 2005-01-23 06:27:08 +0000 |
commit | 150ed2e43d5541556d282cae728cebeec692e07a (patch) | |
tree | 63acd7516484cdbb566f3a3f48979b2c0fb89538 /src/mesa/drivers/dri/radeon/radeon_ioctl.c | |
parent | 999534216d14d85c7f07641dfa37f1aff28d2103 (diff) |
add sync debugging to the radeon driver
Diffstat (limited to 'src/mesa/drivers/dri/radeon/radeon_ioctl.c')
-rw-r--r-- | src/mesa/drivers/dri/radeon/radeon_ioctl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/radeon/radeon_ioctl.c b/src/mesa/drivers/dri/radeon/radeon_ioctl.c index ee1104d91a5..2378285a699 100644 --- a/src/mesa/drivers/dri/radeon/radeon_ioctl.c +++ b/src/mesa/drivers/dri/radeon/radeon_ioctl.c @@ -310,6 +310,11 @@ void radeonFlushElts( radeonContextPtr rmesa ) cmd[1] |= (dwords - 3) << 16; cmd[3] |= nr << RADEON_CP_VC_CNTL_NUM_SHIFT; #endif + + if (RADEON_DEBUG & DEBUG_SYNC) { + fprintf(stderr, "%s: Syncing\n", __FUNCTION__); + radeonFinish( rmesa->glCtx ); + } } @@ -580,6 +585,11 @@ static int radeonFlushCmdBufLocked( radeonContextPtr rmesa, if (ret) fprintf(stderr, "drmCommandWrite: %d\n", ret); + if (RADEON_DEBUG & DEBUG_SYNC) { + fprintf(stderr, "\nSyncing in %s\n\n", __FUNCTION__); + radeonWaitForIdleLocked( rmesa ); + } + out: rmesa->store.primnr = 0; rmesa->store.statenr = 0; |