freedreno/ir3: Fix clipvertex with GS+tess

If we have both GS and tess, GS is the stage we should run lower_clip_vs
on.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19100>
This commit is contained in:
Rob Clark
2022-10-17 10:25:10 -07:00
committed by Marge Bot
parent 0f6f671824
commit 1b38d233fc
+4 -4
View File
@@ -647,12 +647,12 @@ lower_ucp_vs(struct ir3_shader_variant *so)
if (!so->key.ucp_enables)
return false;
gl_shader_stage last_geom_stage = MESA_SHADER_VERTEX;
gl_shader_stage last_geom_stage;
if (so->key.tessellation) {
last_geom_stage = MESA_SHADER_TESS_EVAL;
} else if (so->key.has_gs) {
if (so->key.has_gs) {
last_geom_stage = MESA_SHADER_GEOMETRY;
} else if (so->key.tessellation) {
last_geom_stage = MESA_SHADER_TESS_EVAL;
} else {
last_geom_stage = MESA_SHADER_VERTEX;
}