Module: Mesa
Branch: master
Commit: 2617c78fe298cebe85bec701c3b6a703ff3fbd60
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=2617c78fe298cebe85bec701c3b6a703ff3fbd60

Author: Karol Herbst <[email protected]>
Date:   Fri Mar  8 14:12:00 2019 +0100

nv50/ir/nir: don't assert on !main

required for OpenCL

Signed-off-by: Karol Herbst <[email protected]>
Reviewed-by: Pierre Moreau <[email protected]>

---

 src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp 
b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
index c5ccbe1d8ee..81956334c98 100644
--- a/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
+++ b/src/gallium/drivers/nouveau/codegen/nv50_ir_from_nir.cpp
@@ -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

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to