radeon/r300: no need to flush the cmdbuf when changing scissors state in KMM mode

This commit is contained in:
Maciej Cencora
2009-11-11 13:06:19 +01:00
parent f6d0993212
commit 286bf89e5a
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -1741,7 +1741,8 @@ static void r300Enable(GLcontext * ctx, GLenum cap, GLboolean state)
r300SetPolygonOffsetState(ctx, state);
break;
case GL_SCISSOR_TEST:
radeon_firevertices(&rmesa->radeon);
if (!rmesa->radeon.radeonScreen->kernel_mm)
radeon_firevertices(&rmesa->radeon);
rmesa->radeon.state.scissor.enabled = state;
radeonUpdateScissor( ctx );
break;
+3 -1
View File
@@ -257,7 +257,9 @@ void radeonScissor(GLcontext* ctx, GLint x, GLint y, GLsizei w, GLsizei h)
radeonContextPtr radeon = RADEON_CONTEXT(ctx);
if (ctx->Scissor.Enabled) {
/* We don't pipeline cliprect changes */
radeon_firevertices(radeon);
if (!radeon->radeonScreen->kernel_mm) {
radeon_firevertices(radeon);
}
radeonUpdateScissor(ctx);
}
}