summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/nvc0/nvc0_pc.c
diff options
context:
space:
mode:
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>2011-01-15 14:03:05 +0100
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>2011-01-15 14:14:50 +0100
commit52474d424622c13d7f37f5e954d92d88eefdeac9 (patch)
tree90c6af9a63aceea6d080abebc82695dc86c50f93 /src/gallium/drivers/nvc0/nvc0_pc.c
parent1ae982adfd8144d11334895c39aca65dd30ad946 (diff)
nvc0: make sure all sources of the BIND op are distinct
They're supposed to be assigned consecutive registers so they can't contain the same SSA value more than once.
Diffstat (limited to 'src/gallium/drivers/nvc0/nvc0_pc.c')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_pc.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvc0/nvc0_pc.c b/src/gallium/drivers/nvc0/nvc0_pc.c
index 72483f120e..304a191976 100644
--- a/src/gallium/drivers/nvc0/nvc0_pc.c
+++ b/src/gallium/drivers/nvc0/nvc0_pc.c
@@ -515,6 +515,13 @@ nvc0_insn_insert_after(struct nv_instruction *at, struct nv_instruction *ni)
}
void
+nvc0_insn_insert_before(struct nv_instruction *at, struct nv_instruction *ni)
+{
+ nvc0_insn_insert_after(at, ni);
+ nvc0_insns_permute(at, ni);
+}
+
+void
nvc0_insn_delete(struct nv_instruction *nvi)
{
struct nv_basic_block *b = nvi->bb;