zink: explicitly set non-optimal last_vertex_stage shader key on ctx create

this otherwise results in generated gs not having the flag set, which breaks
various things

cc: mesa-stable

Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24568>
(cherry picked from commit ccc195c3a3)
This commit is contained in:
Mike Blumenkrantz 2023-08-08 16:57:07 -04:00 committed by Dylan Baker
parent cd5e0498c5
commit 1287fbdb3a
2 changed files with 2 additions and 1 deletions

View file

@ -8514,7 +8514,7 @@
"description": "zink: explicitly set non-optimal last_vertex_stage shader key on ctx create",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -5195,6 +5195,7 @@ zink_context_create(struct pipe_screen *pscreen, void *priv, unsigned flags)
}
zink_set_last_vertex_key(ctx)->last_vertex_stage = true;
ctx->gfx_pipeline_state.shader_keys.last_vertex.key.vs_base.last_vertex_stage = true;
zink_set_tcs_key_patches(ctx, 1);
if (!screen->optimal_keys) {
ctx->gfx_pipeline_state.shader_keys.key[MESA_SHADER_VERTEX].size = sizeof(struct zink_vs_key_base);