-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix shader wrapper assert when pipeline binaries are used #1937
Fix shader wrapper assert when pipeline binaries are used #1937
Conversation
CI gfxreconstruct build queued with queue ID 330307. |
CI gfxreconstruct build # 5644 running. |
CI gfxreconstruct build # 5644 passed. |
raytracingpipelinesnv doesn't need this condition? |
Good question, under the
So nothing about raytracingNV, but then there are VUIDs for raytracingNV and pipeline binaries. I guess I should add this for raytracingNV to be safe Edit: Actually there is no |
@@ -2779,14 +2779,18 @@ void VulkanCaptureManager::PostProcess_vkCreateGraphicsPipelines(VkResult | |||
vulkan_wrappers::GetWrapper<vulkan_wrappers::PipelineWrapper>(pPipelines[p]); | |||
assert(ppl_wrapper != nullptr); | |||
|
|||
for (uint32_t s = 0; s < pCreateInfos[p].stageCount; ++s) | |||
const auto binary_info = graphics::vulkan_struct_get_pnext<VkPipelineBinaryInfoKHR>(&pCreateInfos[p]); | |||
if (!binary_info || binary_info->binaryCount == 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit picking: According to our coding guidelines the checks should be the other way around:
if (binary_info == nullptr || !binary_info->binaryCount)
Same applies to the other 2 functions which have the same if condition
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approve with Panos' suggestion
36c9abf
to
c825c15
Compare
CI gfxreconstruct build queued with queue ID 341502. |
CI gfxreconstruct build # 5756 running. |
CI gfxreconstruct build # 5756 passed. |
From the spec: