Vulkan: Use VK_QUEUE_FAMILY_IGNORED on buffer barriers
This patch uses VK_QUEUE_FAMILY_IGNORED on buffer barriers to align with what we are doing on image barriers. Bug: dawn:1688 Change-Id: Icabae22270fc9c92a69ce18e0a63db49de9d7481 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/122444 Reviewed-by: Corentin Wallez <cwallez@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Jiawei Shao <jiawei.shao@intel.com> Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
parent
aaae3ffada
commit
e5ca66806f
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue