From: Eric Anholt Date: Fri, 5 Feb 2010 14:55:20 +0000 (-0800) Subject: i965: Reset the "need new CURBE BO" flag when we make a new CURBE bo. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3e498207d1a0e95f143bb04b38ca22faf5f91f5d;p=mesa.git i965: Reset the "need new CURBE BO" flag when we make a new CURBE bo. Improves cairo-gl gnome-terminal-vim times by 11%. --- 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;