r200: Don't flush when closing elts in KMS.
Flush in middle of rendering in KMS is not allowed because buffers are discarded in flush. Fixes crash when emiting split indices with RADEON_DEBUG=all.
This commit is contained in:
@@ -189,7 +189,8 @@ void r200FlushElts(GLcontext *ctx)
|
||||
if (R200_ELT_BUF_SZ > elt_used)
|
||||
radeonReturnDmaRegion(&rmesa->radeon, R200_ELT_BUF_SZ - elt_used);
|
||||
|
||||
if (radeon_is_debug_enabled(RADEON_SYNC, RADEON_CRITICAL)) {
|
||||
if (radeon_is_debug_enabled(RADEON_SYNC, RADEON_CRITICAL)
|
||||
&& !rmesa->radeon.radeonScreen->kernel_mm) {
|
||||
radeon_print(RADEON_SYNC, RADEON_NORMAL, "%s: Syncing\n", __FUNCTION__);
|
||||
radeonFinish( rmesa->radeon.glCtx );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user