Mesa (master): nvc0: set basic block on manual instruction insertion
Christoph Bumiller
chrisbmr at kemper.freedesktop.org
Wed Feb 9 15:05:53 UTC 2011
Module: Mesa
Branch: master
Commit: 8f051345807494ae0aeaf75e698477f65f29322d
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=8f051345807494ae0aeaf75e698477f65f29322d
Author: Christoph Bumiller <e0425955 at student.tuwien.ac.at>
Date: Mon Feb 7 19:01:54 2011 +0100
nvc0: set basic block on manual instruction insertion
---
src/gallium/drivers/nvc0/nvc0_pc.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/gallium/drivers/nvc0/nvc0_pc.c b/src/gallium/drivers/nvc0/nvc0_pc.c
index 1d1b9e1..a200632 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
More information about the mesa-commit
mailing list