mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-09 23:08:18 +02:00
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:
parent
5b050154ed
commit
644041cf0b
1 changed files with 9 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue