mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 07:18:17 +02:00
vc4: Add a stub for NIR->QIR of control flow function nodes
We shouldn't have any NIR functions present since all GLSL functions get inlined, but this would be a more informative error if it does happen. Signed-off-by: Rhys Kidd <rhyskidd@gmail.com> Reviewed-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
parent
e5997778bc
commit
2450b219e5
1 changed files with 11 additions and 0 deletions
|
|
@ -1693,6 +1693,13 @@ ntq_emit_block(struct vc4_compile *c, nir_block *block)
|
|||
}
|
||||
}
|
||||
|
||||
static void
|
||||
ntq_emit_function(struct vc4_compile *c, nir_function_impl *func)
|
||||
{
|
||||
fprintf(stderr, "FUNCTIONS not handled.\n");
|
||||
abort();
|
||||
}
|
||||
|
||||
static void
|
||||
ntq_emit_cf_list(struct vc4_compile *c, struct exec_list *list)
|
||||
{
|
||||
|
|
@ -1707,6 +1714,10 @@ ntq_emit_cf_list(struct vc4_compile *c, struct exec_list *list)
|
|||
ntq_emit_if(c, nir_cf_node_as_if(node));
|
||||
break;
|
||||
|
||||
case nir_cf_node_function:
|
||||
ntq_emit_function(c, nir_cf_node_as_function(node));
|
||||
break;
|
||||
|
||||
default:
|
||||
fprintf(stderr, "Unknown NIR node type\n");
|
||||
abort();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue