radeonsi: assume that a TES without POSITION precedes GS
authorMarek Olšák <marek.olsak@amd.com>
Wed, 21 Dec 2016 14:16:54 +0000 (15:16 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 6 Jan 2017 20:05:48 +0000 (21:05 +0100)
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index ce0ed31055e019b62e929a5c6aa08264e968bc9d..a360672328190772c1275dc45b1539989fd27de5 100644 (file)
@@ -1275,7 +1275,8 @@ static void si_parse_next_shader_property(const struct tgsi_shader_info *info,
                break;
 
        case PIPE_SHADER_TESS_EVAL:
-               if (next_shader == PIPE_SHADER_GEOMETRY)
+               if (next_shader == PIPE_SHADER_GEOMETRY ||
+                   !info->writes_position)
                        key->as_es = 1;
                break;
        }