X Tutup
Skip to content

Commit a307b24

Browse files
authored
Merge pull request #1795 from billhollings/fix-buff-binding-justoffset-when-overridden
Fix crash when buffer binding updates only offset while it is overridden.
2 parents 32da105 + 8965c87 commit a307b24

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Docs/Whats_New.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ Released 2022/12/08
2222
- `VK_KHR_copy_commands2`
2323
- Fix crash on descriptor update with out-of-bounds descriptor count data.
2424
- Fix Metal buffer index binding overrides for push constants and attachment clearing.
25+
- Fix crash when buffer binding updates only offset while it is overridden.
2526
- Fix app performance regression triggered by the previous introduction of `VK_KHR_shader_float_controls`.
2627
- Work around `MTLCounterSet` crash on additional Intel Iris Plus Graphics devices.
2728
- Fix mistaken YCBCR format support indication.

MoltenVK/MoltenVK/Commands/MVKMTLResourceBindings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ typedef struct MVKMTLBufferBinding {
8686
isDirty = true;
8787
} else if (offset != other.offset) {
8888
offset = other.offset;
89-
justOffset = !isDirty || justOffset;
89+
justOffset = !isOverridden && (!isDirty || justOffset);
9090
isOverridden = false;
9191
isDirty = true;
9292
}

0 commit comments

Comments
 (0)
X Tutup