Skip to content

Fix false positive error: push descriptor not set#433

Merged
jzulauf-lunarg merged 1 commit intomasterfrom
zulauf_pd_false_positive_341
Nov 6, 2018
Merged

Fix false positive error: push descriptor not set#433
jzulauf-lunarg merged 1 commit intomasterfrom
zulauf_pd_false_positive_341

Conversation

@jzulauf-lunarg
Copy link
Copy Markdown
Contributor

Prevent false positive regarding push descriptors that have been set,
not being set.

This fix avoids the false positive but adds no additional push
descriptor validation.

Fixes #341 -- tested against the given CTS testcase.

@jzulauf-lunarg jzulauf-lunarg self-assigned this Oct 29, 2018
@jzulauf-lunarg jzulauf-lunarg changed the title Fix positive error: push descriptor not set Fix false positive error: push descriptor not set Oct 29, 2018
@zeux
Copy link
Copy Markdown

zeux commented Oct 30, 2018

Thanks!

@jzulauf-lunarg
Copy link
Copy Markdown
Contributor Author

This is a quick easy review...

Copy link
Copy Markdown
Contributor

@tobine tobine left a comment

Choose a reason for hiding this comment

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

LGTM. Incomplete comment.

// TODO -- remove this continue path when CmdPushDescriptorSet is implemented, for now it prevents a false positive
if ((setIndex < pipeline_layout.set_layouts.size()) && pipeline_layout.set_layouts[setIndex] &&
pipeline_layout.set_layouts[setIndex]->IsPushDescriptor()) {
// Push descriptors currently don't
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

seems like this comment is incomplete

Prevent false positive regarding push descriptors that have been set,
not being set.

This fix avoids the false positive but adds no additional push
descriptor validation.

Change-Id: I9a75db913927742a1f39e92fbdb177a3ce081117
@jzulauf-lunarg jzulauf-lunarg force-pushed the zulauf_pd_false_positive_341 branch from 4b293ae to c1a55a6 Compare November 6, 2018 15:04
@jzulauf-lunarg jzulauf-lunarg merged commit d87e81d into master Nov 6, 2018
@jzulauf-lunarg jzulauf-lunarg deleted the zulauf_pd_false_positive_341 branch November 21, 2018 18:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Push descriptors generate false positive DescriptorSetNotBound errors

3 participants