Skip to content

Commit 74c7f49

Browse files
authored
Fix the source pipeline stage in the vkCmdPipelineBarrier call for the Compute Shader -> Transfer stage (#513)
Fixes #329 and #328 The source pipeline stage being incorrect was causing the windows-amd machine to read 0s from the output buffer for image resources.
1 parent b8a70a6 commit 74c7f49

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/API/VK/Device.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1647,7 +1647,7 @@ class VKDevice : public offloadtest::Device {
16471647

16481648
for (auto &ResRef : R.ResourceRefs) {
16491649
ImageBarrier.image = ResRef.Image.Image;
1650-
vkCmdPipelineBarrier(IS.CmdBuffer, VK_PIPELINE_STAGE_HOST_BIT,
1650+
vkCmdPipelineBarrier(IS.CmdBuffer, VK_PIPELINE_STAGE_COMPUTE_SHADER_BIT,
16511651
VK_PIPELINE_STAGE_TRANSFER_BIT, 0, 0, nullptr, 0,
16521652
nullptr, 1, &ImageBarrier);
16531653
}

0 commit comments

Comments
 (0)