From: Marek Olšák Date: Fri, 27 May 2016 10:39:30 +0000 (+0200) Subject: radeonsi: always reserve output space for tess factors X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=43550f25ed9595788c9b8b87da5cc48e83c7bce4;p=mesa.git radeonsi: always reserve output space for tess factors Reviewed-by: Bas Nieuwenhuizen Tested-by: Dave Airlie --- diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index c6f51ea84d5..8ec0470889c 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -1104,8 +1104,13 @@ static void *si_create_shader_selector(struct pipe_context *ctx, u_vertices_per_prim(sel->info.properties[TGSI_PROPERTY_GS_INPUT_PRIM]); break; - case PIPE_SHADER_VERTEX: case PIPE_SHADER_TESS_CTRL: + /* Always reserve space for these. */ + sel->patch_outputs_written |= + (1llu << si_shader_io_get_unique_index(TGSI_SEMANTIC_TESSINNER, 0)) | + (1llu << si_shader_io_get_unique_index(TGSI_SEMANTIC_TESSOUTER, 0)); + /* fall through */ + case PIPE_SHADER_VERTEX: case PIPE_SHADER_TESS_EVAL: for (i = 0; i < sel->info.num_outputs; i++) { unsigned name = sel->info.output_semantic_name[i];