projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3df7892
)
vc4: Add better debug for register allocation failure.
author
Eric Anholt
<eric@anholt.net>
Sat, 11 Jul 2015 00:01:37 +0000
(17:01 -0700)
committer
Eric Anholt
<eric@anholt.net>
Tue, 14 Jul 2015 18:33:54 +0000
(11:33 -0700)
src/gallium/drivers/vc4/vc4_register_allocate.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_register_allocate.c
b/src/gallium/drivers/vc4/vc4_register_allocate.c
index 3b0b890b66a43f0ffcd3a3a1891b9562f7fd9048..73964b48dca0f0ab40788ad6fcf2a96fa2cec1ac 100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_register_allocate.c
+++ b/
src/gallium/drivers/vc4/vc4_register_allocate.c
@@
-270,7
+270,11
@@
vc4_register_allocate(struct vc4_context *vc4, struct vc4_compile *c)
}
bool ok = ra_allocate(g);
- assert(ok);
+ if (!ok) {
+ fprintf(stderr, "Failed to register allocate:\n");
+ qir_dump(c);
+ abort();
+ }
for (uint32_t i = 0; i < c->num_temps; i++) {
temp_registers[i] = vc4_regs[ra_get_node_reg(g, temp_to_node[i])];