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:
@@ -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,
|
||||
|
Reference in New Issue
Block a user