From: Aapo Tahkola Date: Sat, 17 Dec 2005 11:59:13 +0000 (+0000) Subject: Enable CB_DPATH by default. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1d32fc7332a8eb7ed16ae572959a671c02397be9;p=mesa.git Enable CB_DPATH by default. --- diff --git a/src/mesa/drivers/dri/r300/r300_context.h b/src/mesa/drivers/dri/r300/r300_context.h index 695609d33c9..89c9ed6fb02 100644 --- a/src/mesa/drivers/dri/r300/r300_context.h +++ b/src/mesa/drivers/dri/r300/r300_context.h @@ -52,7 +52,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. //#define RADEON_VTXFMT_A //#define HW_VBOS //#define OPTIMIZE_ELTS -//#define CB_DPATH +#define CB_DPATH struct r300_context; typedef struct r300_context r300ContextRec; diff --git a/src/mesa/drivers/dri/r300/r300_ioctl.c b/src/mesa/drivers/dri/r300/r300_ioctl.c index 79411e1dba7..94a98ca0924 100644 --- a/src/mesa/drivers/dri/r300/r300_ioctl.c +++ b/src/mesa/drivers/dri/r300/r300_ioctl.c @@ -552,6 +552,9 @@ static void r300Clear(GLcontext * ctx, GLbitfield mask, GLboolean all, swapped = r300->radeon.doPageFlip && (r300->radeon.sarea->pfCurrentPage == 1); #ifdef CB_DPATH + WARN_ONCE("CB_DPATH has been enabled.\nPlease let me know if this introduces new instabilities.\n"); + /* Make sure it fits there. */ + r300EnsureCmdBufSpace(r300, 419*3, __FUNCTION__); if(flags || bits) r300EmitClearState(ctx); #endif