From 4b93ba542cdfd6092d84a64e2d2f2bb7c58ec446 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 21 Dec 2016 15:16:54 +0100 Subject: [PATCH] radeonsi: assume that a TES without POSITION precedes GS MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Reviewed-by: Bas Nieuwenhuizen Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state_shaders.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.30.2