radeonsi: VS as ES/LS are not yet supported with R600_DEBUG=nir
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 15 May 2017 23:19:04 +0000 (01:19 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Jul 2017 12:55:44 +0000 (14:55 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c

index 670b4a76f3fcd03a26313a0dd765359f4b162061..628e6f80d3f856268d8923c9298d969ecc856689 100644 (file)
@@ -4333,8 +4333,10 @@ static void create_function(struct si_shader_context *ctx)
                declare_vs_specific_input_sgprs(ctx, &fninfo);
 
                if (shader->key.as_es) {
+                       assert(!shader->selector->nir);
                        ctx->param_es2gs_offset = add_arg(&fninfo, ARG_SGPR, ctx->i32);
                } else if (shader->key.as_ls) {
+                       assert(!shader->selector->nir);
                        /* no extra parameters */
                } else {
                        if (shader->is_gs_copy_shader) {