summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-12-21 15:16:54 +0100
committerMarek Olšák <[email protected]>2017-01-06 21:05:48 +0100
commit4b93ba542cdfd6092d84a64e2d2f2bb7c58ec446 (patch)
tree725b5497ba1431e9cf637786e0225276cae56fce /src/gallium/drivers/radeonsi
parent53648050a5cac333d6f9613148ae9d615594b4d8 (diff)
radeonsi: assume that a TES without POSITION precedes GS
Reviewed-by: Bas Nieuwenhuizen <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_shaders.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c
index ce0ed31055e..a3606723281 100644
--- a/src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
@@ -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;
}