From 3e498207d1a0e95f143bb04b38ca22faf5f91f5d Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 5 Feb 2010 06:55:20 -0800 Subject: [PATCH] i965: Reset the "need new CURBE BO" flag when we make a new CURBE bo. Improves cairo-gl gnome-terminal-vim times by 11%. --- src/mesa/drivers/dri/i965/brw_curbe.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/brw_curbe.c b/src/mesa/drivers/dri/i965/brw_curbe.c index 22e3e732f40..3440523ea75 100644 --- a/src/mesa/drivers/dri/i965/brw_curbe.c +++ b/src/mesa/drivers/dri/i965/brw_curbe.c @@ -318,6 +318,7 @@ static void prepare_constant_buffer(struct brw_context *brw) brw->curbe.curbe_bo = dri_bo_alloc(brw->intel.bufmgr, "CURBE", 4096, 1 << 6); brw->curbe.curbe_next_offset = 0; + brw->curbe.need_new_bo = GL_FALSE; } brw->curbe.curbe_offset = brw->curbe.curbe_next_offset; -- 2.30.2