From: Christoph Bumiller Date: Mon, 7 Feb 2011 18:01:54 +0000 (+0100) Subject: nvc0: set basic block on manual instruction insertion X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8f051345807494ae0aeaf75e698477f65f29322d;p=mesa.git nvc0: set basic block on manual instruction insertion --- diff --git a/src/gallium/drivers/nvc0/nvc0_pc.c b/src/gallium/drivers/nvc0/nvc0_pc.c index 1d1b9e19b78..a2006321021 100644 --- a/src/gallium/drivers/nvc0/nvc0_pc.c +++ b/src/gallium/drivers/nvc0/nvc0_pc.c @@ -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