[Mesa-dev] [PATCH 03/13] nir: kernel entrypoints can have arguments

Rob Clark robdclark at gmail.com
Wed Feb 28 19:51:33 UTC 2018


This assert is not valid for OpenCL kernels.

TODO can we somehow conditionally assert based on glsl vs cl??

Signed-off-by: Rob Clark <robdclark at gmail.com>
---
 src/compiler/nir/nir.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h
index 2acd9511f57..29181694a35 100644
--- a/src/compiler/nir/nir.h
+++ b/src/compiler/nir/nir.h
@@ -1954,7 +1954,6 @@ nir_shader_get_entrypoint(nir_shader *shader)
    struct exec_node *func_node = exec_list_get_head(&shader->functions);
    nir_function *func = exec_node_data(nir_function, func_node, node);
    assert(func->return_type == glsl_void_type());
-   assert(func->num_params == 0);
    assert(func->impl);
    return func->impl;
 }
-- 
2.14.3



More information about the mesa-dev mailing list