radv: fix initialization of radv_shader_layout->use_dynamic_descriptors

Fixes: 66eaca3a0a ('radv: introduce radv_shader_layout for per-stage descriptor layout')
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27898>
(cherry picked from commit 67ea2eb97a)
This commit is contained in:
Daniel Schürmann 2024-02-29 22:16:16 +01:00 committed by Eric Engestrom
parent bba7bd12e0
commit eb30cab5e4
2 changed files with 3 additions and 6 deletions

View file

@ -2674,7 +2674,7 @@
"description": "radv: fix initialization of radv_shader_layout->use_dynamic_descriptors",
"nominated": true,
"nomination_type": 1,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "66eaca3a0a596385436082ae1e4bd70dcf09f466",
"notes": null

View file

@ -265,11 +265,8 @@ radv_shader_layout_init(const struct radv_pipeline_layout *pipeline_layout, gl_s
}
layout->push_constant_size = pipeline_layout->push_constant_size;
if (pipeline_layout->dynamic_offset_count &&
(pipeline_layout->dynamic_shader_stages & mesa_to_vk_shader_stage(stage))) {
layout->use_dynamic_descriptors = true;
}
layout->use_dynamic_descriptors = pipeline_layout->dynamic_offset_count &&
(pipeline_layout->dynamic_shader_stages & mesa_to_vk_shader_stage(stage));
}
static const struct vk_ycbcr_conversion_state *