mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
zink: move compute pipeline cache update to caller
this is more flexible Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18197>
This commit is contained in:
parent
1cc6cecc3a
commit
e1ad7bf0b7
2 changed files with 1 additions and 1 deletions
|
|
@ -413,7 +413,6 @@ zink_create_compute_pipeline(struct zink_screen *screen, struct zink_compute_pro
|
|||
mesa_loge("ZINK: vkCreateComputePipelines failed (%s)", vk_Result_to_str(result));
|
||||
return VK_NULL_HANDLE;
|
||||
}
|
||||
zink_screen_update_pipeline_cache(screen, &comp->base);
|
||||
|
||||
return pipeline;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -993,6 +993,7 @@ zink_get_compute_pipeline(struct zink_screen *screen,
|
|||
if (pipeline == VK_NULL_HANDLE)
|
||||
return VK_NULL_HANDLE;
|
||||
|
||||
zink_screen_update_pipeline_cache(screen, &comp->base);
|
||||
if (!comp->use_local_size && !comp->curr->num_uniforms && !comp->curr->has_nonseamless) {
|
||||
/* don't add base pipeline to cache */
|
||||
state->pipeline = comp->base_pipeline = pipeline;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue