venus: fix pipeline layout lifetime

Should check the count instead of random ptr addr.

Fixes: 19f2b9d0bb ("venus: extend VkPipelineLayout lifetime for ...")
Signed-off-by: Yiwei Zhang <zzyiwei@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/27054>
This commit is contained in:
Yiwei Zhang
2024-01-11 19:27:57 -08:00
committed by Marge Bot
parent 7e8dce8c93
commit b551b6e48a

View File

@@ -356,7 +356,7 @@ vn_CreatePipelineLayout(VkDevice device,
}
}
layout->has_push_constant_ranges = pCreateInfo->pPushConstantRanges > 0;
layout->has_push_constant_ranges = pCreateInfo->pushConstantRangeCount > 0;
VkPipelineLayout layout_handle = vn_pipeline_layout_to_handle(layout);
vn_async_vkCreatePipelineLayout(dev->primary_ring, device, pCreateInfo,