--- src/gallium/drivers/radeonsi/si_shader.c 2018-01-12 19:35:40.000000000 +0300 +++ src/gallium/drivers/radeonsi/si_shader.c 2018-01-12 21:11:33.071899392 +0300 @@ -1960,10 +1960,10 @@ struct si_shader_context *ctx = si_shader_context_from_abi(abi); if (ctx->type == PIPE_SHADER_TESS_CTRL) return unpack_param(ctx, ctx->param_tcs_out_lds_layout, 26, 6); - else if (ctx->type == PIPE_SHADER_TESS_EVAL) - return get_num_tcs_out_vertices(ctx); - else + else if (ctx->type != PIPE_SHADER_TESS_EVAL) assert(!"invalid shader stage for TGSI_SEMANTIC_VERTICESIN"); + + return get_num_tcs_out_vertices(ctx); } void si_load_system_value(struct si_shader_context *ctx,