i965: Reset the "need new CURBE BO" flag when we make a new CURBE bo.
authorEric Anholt <eric@anholt.net>
Fri, 5 Feb 2010 14:55:20 +0000 (06:55 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 6 Feb 2010 13:10:07 +0000 (14:10 +0100)
Improves cairo-gl gnome-terminal-vim times by 11%.

src/mesa/drivers/dri/i965/brw_curbe.c

index 22e3e732f40601099fff8dd27d1ab5d23a8fbdff..3440523ea759a5796f934bdf1e3c884bfc487bdc 100644 (file)
@@ -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;