From: Nicolai Hähnle Date: Mon, 15 May 2017 23:19:04 +0000 (+0200) Subject: radeonsi: VS as ES/LS are not yet supported with R600_DEBUG=nir X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3b4f481c601102411d421ec3b7ee9b8e50046fc1;p=mesa.git radeonsi: VS as ES/LS are not yet supported with R600_DEBUG=nir Reviewed-by: Marek Olšák --- 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) {