zink: allow the backend to optimise shaders.

I can't think of any reason for ever requesting this here,
maybe in some future with parallel threads optimised compiles
and where vulkan drivers respect this bit.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7840>
This commit is contained in:
Dave Airlie 2020-12-01 09:15:10 +10:00 committed by Marge Bot
parent e2e383e36a
commit bf7c4108fb

View file

@ -136,7 +136,6 @@ zink_create_gfx_pipeline(struct zink_screen *screen,
VkGraphicsPipelineCreateInfo pci = {};
pci.sType = VK_STRUCTURE_TYPE_GRAPHICS_PIPELINE_CREATE_INFO;
pci.flags = VK_PIPELINE_CREATE_DISABLE_OPTIMIZATION_BIT;
pci.layout = prog->layout;
pci.renderPass = state->render_pass->render_pass;
pci.pVertexInputState = &vertex_input_state;