mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
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:
parent
2ae754b7b9
commit
7e24ce2d9b
1 changed files with 2 additions and 1 deletions
|
|
@ -193,7 +193,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 );
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue