From 3b4f481c601102411d421ec3b7ee9b8e50046fc1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Nicolai=20H=C3=A4hnle?= Date: Tue, 16 May 2017 01:19:04 +0200 Subject: [PATCH] radeonsi: VS as ES/LS are not yet supported with R600_DEBUG=nir MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 670b4a76f3f..628e6f80d3f 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -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) { -- 2.30.2