From: Marek Olšák Date: Wed, 21 Dec 2016 14:16:54 +0000 (+0100) Subject: radeonsi: assume that a TES without POSITION precedes GS X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b93ba542cdfd6092d84a64e2d2f2bb7c58ec446;p=mesa.git radeonsi: assume that a TES without POSITION precedes GS Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Nicolai Hähnle --- 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; }