From af4b9c7c2e119d373f9684119b833a8b62cbb756 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 18 May 2015 14:50:19 +0200 Subject: radeonsi: don't count special outputs for the VS export count MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Michel Dänzer --- src/gallium/drivers/radeonsi/si_state_shaders.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gallium/drivers') 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++; -- cgit v1.2.3