vc4: Add better debug of NIR->QIR control flow graph failure

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>
This commit is contained in:
Rhys Kidd 2016-03-12 18:34:01 -05:00 committed by Eric Anholt
parent e529dd179f
commit e5997778bc
1 changed files with 2 additions and 1 deletions

View File

@ -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();
}
}
}