From: Pauli Nieminen Date: Fri, 21 Aug 2009 15:29:06 +0000 (+0300) Subject: r300: Handle possible fall back if space check fails. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12fe319c53187e9a316f8c26441040a84ae4efca;p=mesa.git r300: Handle possible fall back if space check fails. --- diff --git a/src/mesa/drivers/dri/r300/r300_draw.c b/src/mesa/drivers/dri/r300/r300_draw.c index d4246b386ca..3cdb9dc2edb 100644 --- a/src/mesa/drivers/dri/r300/r300_draw.c +++ b/src/mesa/drivers/dri/r300/r300_draw.c @@ -611,6 +611,9 @@ static GLboolean r300TryDrawPrims(GLcontext *ctx, r300AllocDmaRegions(ctx, arrays, max_index + 1); + if (r300->fallback) + return GL_FALSE; + r300EmitCacheFlush(r300); radeonEmitState(&r300->radeon);