Skip to content
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

Vulkan: Fix BasePipeline value set in vkCreate*Pipelines #2393

Merged
merged 1 commit into from
Nov 26, 2018

Conversation

bjoeris
Copy link
Contributor

@bjoeris bjoeris commented Nov 23, 2018

When the vk*PipelineCreateInfo specifies a base pipeline by
basePipelineHandle, the basePipelineIndex is set to -1; the previous code
lost this -1 value, and later in vk*PipelineCreateInfo, BasePipelineIndex
was 0, causing BasePipeline to be set by index, instead of by handle.

This change ensures that basePipelineIndex is copied over to the
*PipelineObject, so that BasePipeline is set correctly.

Fixes #2392

When the `vk*PipelineCreateInfo` specifies a base pipeline by
`basePipelineHandle`, the `basePipelineIndex` is set to -1; the previous code
lost this -1 value, and later in `vk*PipelineCreateInfo`, `BasePipelineIndex`
was 0, causing `BasePipeline` to be set by index, instead of by handle.

This change ensures that `basePipelineIndex` is copied over to the
`*PipelineObject`, so that `BasePipeline` is set correctly.

Fixes google#2392
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants