mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 13:38:06 +02:00
radv: allow to create pipelines with a NULL pipeline layout
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39483>
This commit is contained in:
parent
65415b1c89
commit
aeda29c8f7
2 changed files with 5 additions and 1 deletions
|
|
@ -239,6 +239,9 @@ void
|
|||
radv_shader_layout_init(const struct radv_pipeline_layout *pipeline_layout, mesa_shader_stage stage,
|
||||
struct radv_shader_layout *layout)
|
||||
{
|
||||
if (!pipeline_layout)
|
||||
return;
|
||||
|
||||
layout->num_sets = pipeline_layout->num_sets;
|
||||
for (unsigned i = 0; i < pipeline_layout->num_sets; i++) {
|
||||
layout->set[i].layout = pipeline_layout->set[i].layout;
|
||||
|
|
|
|||
|
|
@ -85,7 +85,8 @@ radv_compute_pipeline_init(struct radv_compute_pipeline *pipeline, const struct
|
|||
pipeline->base.need_push_constants_upload |= radv_shader_need_push_constants_upload(shader);
|
||||
|
||||
pipeline->base.push_constant_size = align(shader->info.push_constant_size, 4);
|
||||
pipeline->base.dynamic_offset_count = layout->dynamic_offset_count;
|
||||
if (layout)
|
||||
pipeline->base.dynamic_offset_count = layout->dynamic_offset_count;
|
||||
}
|
||||
|
||||
struct radv_shader_binary *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue