Skip to content

Comments

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

Merged
bjoeris merged 1 commit intogoogle:masterfrom
bjoeris:pr-base-pipeline
Nov 26, 2018
Merged

Vulkan: Fix BasePipeline value set in vkCreate*Pipelines#2393
bjoeris merged 1 commit intogoogle:masterfrom
bjoeris:pr-base-pipeline

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