[Mesa-dev] [PATCH 1/3] vc4: Add better debug of NIR->QIR control flow graph failure
Rhys Kidd
rhyskidd at gmail.com
Sat Mar 12 23:34:01 UTC 2016
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 at gmail.com>
---
src/gallium/drivers/vc4/vc4_program.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/vc4/vc4_program.c b/src/gallium/drivers/vc4/vc4_program.c
index 5c91c02..4b625a2 100644
--- a/src/gallium/drivers/vc4/vc4_program.c
+++ b/src/gallium/drivers/vc4/vc4_program.c
@@ -1700,7 +1700,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();
}
}
}
--
2.5.0
More information about the mesa-dev
mailing list