radv: remove useless PIPELINE_CREATE_2_LIBRARY_BIT check for retained shaders
VK_PIPELINE_CREATE_2_RETAIN_LINK_TIME_OPTIMIZATION_INFO_BIT_EXT is only allowed for pipeline libs, so VK_PIPELINE_CREATE_2_LIBRARY_BIT_KHR should also be set. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25110>
This commit is contained in:

committed by
Marge Bot

parent
d6299ec258
commit
64a5472ad7
@@ -2683,7 +2683,8 @@ radv_graphics_pipeline_compile(struct radv_graphics_pipeline *pipeline, const Vk
|
||||
*/
|
||||
if (fast_linking_enabled || keep_executable_info) {
|
||||
skip_shaders_cache = true;
|
||||
} else if ((pipeline->base.create_flags & VK_PIPELINE_CREATE_2_LIBRARY_BIT_KHR) && retain_shaders) {
|
||||
} else if (retain_shaders) {
|
||||
assert(pipeline->base.create_flags & VK_PIPELINE_CREATE_2_LIBRARY_BIT_KHR);
|
||||
for (uint32_t i = 0; i < MESA_VULKAN_SHADER_STAGES; i++) {
|
||||
if (stages[i].entrypoint && !stages[i].spirv.size) {
|
||||
skip_shaders_cache = true;
|
||||
|
Reference in New Issue
Block a user