Fixes: bc99b22a305be5e5a5f
Closes: #2754
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4527>
if (st->shader_has_one_variant[MESA_SHADER_VERTEX] &&
stvp->variants &&
- st_common_variant(stvp->variants)->key.passthrough_edgeflags == st->vertdata_edgeflags) {
+ st_common_variant(stvp->variants)->key.passthrough_edgeflags == st->vertdata_edgeflags &&
+ !st_common_variant(stvp->variants)->key.is_draw_shader) {
st->vp_variant = st_common_variant(stvp->variants);
} else {
struct st_common_variant_key key;