static void radeonScissor(GLcontext* ctx, GLint x, GLint y, GLsizei w, GLsizei h) { if (ctx->Scissor.Enabled) { /* We don't pipeline cliprect changes */ r300Flush(ctx); radeonUpdateScissor(ctx); } }
static void radeonSpanRenderStart( GLcontext *ctx ) { radeonContextPtr rmesa = RADEON_CONTEXT( ctx ); // R300_FIREVERTICES( rmesa ); // old code has flush r300Flush(ctx); LOCK_HARDWARE( rmesa ); radeonWaitForIdleLocked( rmesa ); }
/** * Handle common enable bits. * Called as a fallback by r200Enable/r300Enable. */ void radeonEnable(GLcontext* ctx, GLenum cap, GLboolean state) { radeonContextPtr radeon = RADEON_CONTEXT(ctx); switch(cap) { case GL_SCISSOR_TEST: /* We don't pipeline cliprect & scissor changes */ r300Flush(ctx); radeon->state.scissor.enabled = state; radeonUpdateScissor(ctx); break; default: return; } }