zink: fix win32 build

Fixes: 57575627, c4cc3d91

Tested-by: Prodea Alexandru-Liviu <liviuprodea@yahoo.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9126>
This commit is contained in:
Michel Zou 2021-02-18 09:19:30 +01:00 committed by Marge Bot
parent e3bdf815b7
commit 834b69d1ef

View file

@ -808,8 +808,10 @@ zink_destroy_screen(struct pipe_screen *pscreen)
u_transfer_helper_destroy(pscreen->transfer_helper);
zink_screen_update_pipeline_cache(screen);
#ifdef ENABLE_SHADER_CACHE
if (screen->disk_cache)
disk_cache_wait_for_idle(screen->disk_cache);
#endif
disk_cache_destroy(screen->disk_cache);
vkDestroyPipelineCache(screen->dev, screen->pipeline_cache, NULL);
@ -1287,8 +1289,10 @@ zink_internal_create_screen(const struct pipe_screen_config *config)
slab_create_parent(&screen->transfer_pool, sizeof(struct zink_transfer), 16);
#if WITH_XMLCONFIG
if (config)
screen->driconf.dual_color_blend_by_location = driQueryOptionb(config->options, "dual_color_blend_by_location");
#endif
return screen;