lavapipe: stop using pipeline layouts in some places

no functional changes

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39496>
This commit is contained in:
Mike Blumenkrantz 2024-10-25 13:17:31 -04:00 committed by Marge Bot
parent 5b050154ed
commit 644041cf0b

View file

@ -999,8 +999,16 @@ lvp_graphics_pipeline_init(struct lvp_pipeline *pipeline,
}
}
if (!libstate && !pipeline->library)
if (!libstate && !pipeline->library) {
lvp_pipeline_shaders_compile(pipeline, false);
if (pipeline->layout) {
for (unsigned i = 0; i < ARRAY_SIZE(pipeline->shaders); i++) {
VkShaderStageFlagBits stage = mesa_to_vk_shader_stage(i);
if (pipeline->layout->push_constant_stages & stage)
pipeline->shaders[i].push_constant_size = pipeline->layout->push_constant_size;
}
}
}
return VK_SUCCESS;