From 8f051345807494ae0aeaf75e698477f65f29322d Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Mon, 7 Feb 2011 19:01:54 +0100 Subject: nvc0: set basic block on manual instruction insertion --- src/gallium/drivers/nvc0/nvc0_pc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/nvc0/nvc0_pc.c b/src/gallium/drivers/nvc0/nvc0_pc.c index 1d1b9e19b7..a200632102 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 -- cgit v1.2.3