From: Marek Olšák Date: Mon, 18 May 2015 12:50:19 +0000 (+0200) Subject: radeonsi: don't count special outputs for the VS export count X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=af4b9c7c2e119d373f9684119b833a8b62cbb756;p=mesa.git radeonsi: don't count special outputs for the VS export count Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c index 5974e77e374..25811ab413d 100644 --- a/src/gallium/drivers/radeonsi/si_state_shaders.c +++ b/src/gallium/drivers/radeonsi/si_state_shaders.c @@ -182,8 +182,13 @@ static void si_shader_vs(struct si_shader *shader) for (nparams = 0, i = 0 ; i < info->num_outputs; i++) { switch (info->output_semantic_name[i]) { case TGSI_SEMANTIC_CLIPVERTEX: + case TGSI_SEMANTIC_CLIPDIST: + case TGSI_SEMANTIC_CULLDIST: case TGSI_SEMANTIC_POSITION: case TGSI_SEMANTIC_PSIZE: + case TGSI_SEMANTIC_EDGEFLAG: + case TGSI_SEMANTIC_VIEWPORT_INDEX: + case TGSI_SEMANTIC_LAYER: break; default: nparams++;