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: re-Fix wrong descriptor set indices when binding descriptor sets #2224

Merged
merged 1 commit into from
Sep 18, 2018

Conversation

Qining
Copy link
Contributor

@Qining Qining commented Sep 17, 2018

This re-fixes the wrong calculation of descriptor set indices when binding
descriptor sets. The fix was reverted as #2191 get reverted.

Also, for multi-layer maps (e.g. map!(u32, map!(u32...), we need to
explicitly assign the child map back to the parent map. This is because
the generated go/c++ code will not assign the child map back to the
parent map automactically (go: Get(), c++: findOrZero) when write
api file like: parent[parent_key][child_key] = child_content.

TODO: Similar bugs for other mutlti-layer maps

This re-fixes the wrong calculation of descriptor set indices when binding
descriptor sets. The fix was reverted as google#2191 get reverted.

Also, for multi-layer maps (e.g. `map!(u32, map!(u32...`), we need to
explicitly assign the child map back to the parent map. This is because
the generated go/c++ code will not assign the child map back to the
parent map automactically (go: `Get()`, c++: `findOrZero`) when write
api file like: `parent[parent_key][child_key] = child_content`.

TODO: Similar bugs for other mutlti-layer maps
@Qining Qining requested a review from AWoloszyn September 17, 2018 20:22
@Qining Qining merged commit 7bc48ef into google:master Sep 18, 2018
@Qining Qining deleted the fix-dyn-desc-offset branch October 23, 2018 17:26
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.

2 participants