Skip to content

Commit 4cdeaa3

Browse files
committed
Missing sync hint for device-local buffer sync added
1 parent e082516 commit 4cdeaa3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/avk.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2657,7 +2657,8 @@ namespace avk
26572657
stagingBuffer.enable_shared_ownership(); // TODO: Why does it not work WITHOUT shared_ownership? (Fails when assigning it to mBeginFun)
26582658
stagingBuffer->fill(aDataPtr, 0); // Recurse into the other if-branch
26592659

2660-
// Whatever comes after must synchronize with the device-local copy:
2660+
// Whatever comes before/after must synchronize with the device-local copy:
2661+
std::get<avk::sync::sync_hint>(actionTypeCommand.mResourceSpecificSyncHints.front()).mDstForPreviousCmds = stage::copy + (access::transfer_read | access::transfer_write);
26612662
std::get<avk::sync::sync_hint>(actionTypeCommand.mResourceSpecificSyncHints.front()).mSrcForSubsequentCmds = stage::copy + access::transfer_write;
26622663
actionTypeCommand.infer_sync_hint_from_resource_sync_hints();
26632664

0 commit comments

Comments
 (0)