[03/13] nir: kernel entrypoints can have arguments

Submitted by Rob Clark on Feb. 28, 2018, 7:51 p.m.

Details

Message ID 20180228195150.5893-4-robdclark@gmail.com
State New
Headers show
Series "nir/vtn/compiler: first batch of compute support" ( rev: 1 ) in Mesa

Not browsing as part of any series.

Commit Message

Rob Clark Feb. 28, 2018, 7:51 p.m.
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@gmail.com>
---
 src/compiler/nir/nir.h | 1 -
 1 file changed, 1 deletion(-)

Patch hide | download patch | download mbox

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;
 }