Skip to content

Comments

Vulkan: Fix infinite loop in state_rebuilder.#2391

Merged
bjoeris merged 1 commit intogoogle:masterfrom
bjoeris:pr-getPipelinesInOrder-inf-loop
Nov 26, 2018
Merged

Vulkan: Fix infinite loop in state_rebuilder.#2391
bjoeris merged 1 commit intogoogle:masterfrom
bjoeris:pr-getPipelinesInOrder-inf-loop

Conversation

@bjoeris
Copy link
Contributor

@bjoeris bjoeris commented Nov 23, 2018

The problematic case is a state containing multiple pipelines, some of which
have 0 basePipeline, and some of which have a basePipeline that forms a loop or
doesn't exist. This caused both numHandled and len(unhandledPipelines) to be
non-zero forever. This change resets numHandled for each pass over
unhandledPipelines.

Fixes #2390

Copy link
Contributor

@AWoloszyn AWoloszyn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"forms a loop or" << That is a bit scary, and we should probably warn the user about that. But that is a separate problem.

The problematic case is a state containing multiple pipelines, some of which
have 0 basePipeline, and some of which have a basePipeline that forms a loop or
doesn't exist. This caused both `numHandled` and `len(unhandledPipelines)` to be
non-zero forever. This change resets `numHandled` for each pass over
`unhandledPipelines`.

Fixes google#2390
@bjoeris bjoeris force-pushed the pr-getPipelinesInOrder-inf-loop branch from 75dc07b to 363e5a0 Compare November 23, 2018 19:30
@bjoeris bjoeris merged commit 55b03c9 into google:master Nov 26, 2018
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.

3 participants