radeonsi: don't count special outputs for the VS export count
authorMarek Olšák <marek.olsak@amd.com>
Mon, 18 May 2015 12:50:19 +0000 (14:50 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 26 May 2015 10:42:36 +0000 (12:42 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index 5974e77e374154fdd514358da6887d4f8b043790..25811ab413dd09a1388fc8b77582f96357c82df0 100644 (file)
@@ -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++;