diff --git a/src/dawn/native/vulkan/BufferVk.cpp b/src/dawn/native/vulkan/BufferVk.cpp index 73150bcdf3..bfa2e519a1 100644 --- a/src/dawn/native/vulkan/BufferVk.cpp +++ b/src/dawn/native/vulkan/BufferVk.cpp @@ -314,8 +314,8 @@ bool Buffer::TrackUsageAndGetResourceBarrier(CommandRecordingContext* recordingC barrier->pNext = nullptr; barrier->srcAccessMask = VulkanAccessFlags(mLastUsage); barrier->dstAccessMask = VulkanAccessFlags(usage); - barrier->srcQueueFamilyIndex = 0; - barrier->dstQueueFamilyIndex = 0; + barrier->srcQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; + barrier->dstQueueFamilyIndex = VK_QUEUE_FAMILY_IGNORED; barrier->buffer = mHandle; barrier->offset = 0; // VK_WHOLE_SIZE doesn't work on old Windows Intel Vulkan drivers, so we don't use it.