projects
/
platform
/
upstream
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e529dd1
)
vc4: Add better debug of NIR->QIR control flow graph failure
author
Rhys Kidd
<rhyskidd@gmail.com>
Sat, 12 Mar 2016 23:34:01 +0000
(18:34 -0500)
committer
Eric Anholt
<eric@anholt.net>
Sat, 9 Apr 2016 01:28:43 +0000
(18:28 -0700)
Ensure NIR control flow graph nodes that are unhandled in QIR
are reported with sufficient verbosity to aid debugging.
This improves piglit outputs, amongst other tools.
There are no other remaining uses of assert(0) as a blunt tool
within vc4.
Signed-off-by: Rhys Kidd <rhyskidd@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/vc4/vc4_program.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/vc4/vc4_program.c
b/src/gallium/drivers/vc4/vc4_program.c
index
e698118
..
921092b
100644
(file)
--- a/
src/gallium/drivers/vc4/vc4_program.c
+++ b/
src/gallium/drivers/vc4/vc4_program.c
@@
-1708,7
+1708,8
@@
ntq_emit_cf_list(struct vc4_compile *c, struct exec_list *list)
break;
default:
- assert(0);
+ fprintf(stderr, "Unknown NIR node type\n");
+ abort();
}
}
}