nv50/ir/nir: don't assert on !main
authorKarol Herbst <kherbst@redhat.com>
Fri, 8 Mar 2019 13:12:00 +0000 (14:12 +0100)
committerKarol Herbst <kherbst@redhat.com>
Wed, 10 Jul 2019 11:22:21 +0000 (13:22 +0200)
required for OpenCL

Signed-off-by: Karol Herbst <kherbst@redhat.com>
Reviewed-by: Pierre Moreau <pierre.morrow@free.fr>
src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp

index c5ccbe1d8eea0634577d6f1ae5d94fd9790bebe8..81956334c98ef739212694358499f2aaf666399b 100644 (file)
@@ -1556,8 +1556,6 @@ Converter::parseNIR()
 bool
 Converter::visit(nir_function *function)
 {
-   // we only support emiting the main function for now
-   assert(!strcmp(function->name, "main"));
    assert(function->impl);
 
    // usually the blocks will set everything up, but main is special