zink: destroy shaderdb pipelines

cc: mesa-stable

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28815>
(cherry picked from commit fd6468a5ae)
This commit is contained in:
Mike Blumenkrantz 2024-04-18 11:18:06 -04:00 committed by Eric Engestrom
parent 266238b88b
commit f35fc4ace8
2 changed files with 2 additions and 1 deletions

View file

@ -1044,7 +1044,7 @@
"description": "zink: destroy shaderdb pipelines",
"nominated": true,
"nomination_type": 0,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": null,
"notes": null

View file

@ -2203,6 +2203,7 @@ zink_link_gfx_shader(struct pipe_context *pctx, void **shaders)
ctx->gfx_pipeline_state.element_state->binding_map,
shaders[MESA_SHADER_TESS_EVAL] ? VK_PRIMITIVE_TOPOLOGY_PATCH_LIST : VK_PRIMITIVE_TOPOLOGY_TRIANGLE_LIST, true, NULL);
print_pipeline_stats(screen, pipeline);
VKSCR(DestroyPipeline)(screen->dev, pipeline, NULL);
} else {
if (zink_screen(pctx->screen)->info.have_EXT_shader_object)
prog->base.uses_shobj = !BITSET_TEST(zshaders[MESA_SHADER_FRAGMENT]->info.system_values_read, SYSTEM_VALUE_SAMPLE_MASK_IN);