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 infinite loop in state_rebuilder. #2391

Merged
merged 1 commit into from
Nov 26, 2018

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