nvc0: set basic block on manual instruction insertion
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 7 Feb 2011 18:01:54 +0000 (19:01 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 9 Feb 2011 15:04:59 +0000 (16:04 +0100)
src/gallium/drivers/nvc0/nvc0_pc.c

index 1d1b9e19b7812e665e5b2e3bb1a9e66206c6b1fd..a20063210210b1bae022f75436ea47bd504ef076 100644 (file)
@@ -518,6 +518,8 @@ nvc0_insn_insert_after(struct nv_instruction *at, struct nv_instruction *ni)
    ni->prev = at;
    ni->next->prev = ni;
    ni->prev->next = ni;
+   ni->bb = at->bb;
+   ni->bb->num_instructions++;
 }
 
 void