Skip to content

Commit

Permalink
Merge pull request #1795 from billhollings/fix-buff-binding-justoffse…
Browse files Browse the repository at this point in the history
…t-when-overridden

Fix crash when buffer binding updates only offset while it is overridden.
  • Loading branch information
billhollings authored Dec 9, 2022
2 parents 32da105 + 8965c87 commit a307b24
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Docs/Whats_New.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Released 2022/12/08
- `VK_KHR_copy_commands2`
- Fix crash on descriptor update with out-of-bounds descriptor count data.
- Fix Metal buffer index binding overrides for push constants and attachment clearing.
- Fix crash when buffer binding updates only offset while it is overridden.
- Fix app performance regression triggered by the previous introduction of `VK_KHR_shader_float_controls`.
- Work around `MTLCounterSet` crash on additional Intel Iris Plus Graphics devices.
- Fix mistaken YCBCR format support indication.
Expand Down
2 changes: 1 addition & 1 deletion MoltenVK/MoltenVK/Commands/MVKMTLResourceBindings.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ typedef struct MVKMTLBufferBinding {
isDirty = true;
} else if (offset != other.offset) {
offset = other.offset;
justOffset = !isDirty || justOffset;
justOffset = !isOverridden && (!isDirty || justOffset);
isOverridden = false;
isDirty = true;
}
Expand Down

0 comments on commit a307b24

Please sign in to comment.