if (ret == RADEON_CS_SPACE_OP_TO_BIG)
return GL_FALSE;
if (ret == RADEON_CS_SPACE_FLUSH) {
- ctx->Driver.Flush(ctx); /* +r6/r7 */
+ if (ctx->Driver.Flush)
+ ctx->Driver.Flush(ctx); /* +r6/r7 */
if (flushed)
return GL_FALSE;
flushed = 1;
struct gl_framebuffer *fb = ctx->DrawBuffer;
int i;
- ctx->Driver.Flush(ctx); /* +r6/r7 */
+ if (ctx->Driver.Flush)
+ ctx->Driver.Flush(ctx); /* +r6/r7 */
if (radeon->radeonScreen->kernel_mm) {
for (i = 0; i < fb->_NumColorDrawBuffers; i++) {
return GL_FALSE;
}
- ctx->Driver.Flush(ctx); /* +r6/r7 */
+ if (ctx->Driver.Flush)
+ ctx->Driver.Flush(ctx); /* +r6/r7 */
if (rrb->bo)
radeon_bo_unref(rrb->bo);
GLenum attachment, struct gl_renderbuffer *rb)
{
- ctx->Driver.Flush(ctx); /* +r6/r7 */
+ if (ctx->Driver.Flush)
+ ctx->Driver.Flush(ctx); /* +r6/r7 */
_mesa_framebuffer_renderbuffer(ctx, fb, attachment, rb);
radeon_draw_buffer(ctx, fb);