summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2016-11-14 02:03:28 +0100
committerMarek Olšák <[email protected]>2016-11-21 21:44:35 +0100
commite59389d73826c88c76c7a4db2a7ca5ef57bdf7b9 (patch)
treeb23fd5940578315c060f4172e1c336c41cef5040 /src/gallium/drivers
parent7dbf83af54067efcbd8fb872bbd1115fcecfab47 (diff)
radeonsi: assume that a VS without POSITION is LS
Tested-by: Edmondo Tommasina <[email protected]> Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_shaders.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_shaders.c b/src/gallium/drivers/radeonsi/si_state_shaders.c
index 9e95fea33af..d0869e3d94f 100644
--- a/src/gallium/drivers/radeonsi/si_state_shaders.c
+++ b/src/gallium/drivers/radeonsi/si_state_shaders.c
@@ -1124,6 +1124,13 @@ static void si_parse_next_shader_property(const struct tgsi_shader_info *info,
case PIPE_SHADER_TESS_EVAL:
key->vs.as_ls = 1;
break;
+ default:
+ /* If POSITION isn't written, it can't be a HW VS.
+ * Assume that it's a HW LS. (the next shader is TCS)
+ * This heuristic is needed for separate shader objects.
+ */
+ if (!info->writes_position)
+ key->as_ls = 1;
}
break;