commit | aa9d99ff6b53b11c0647a1a8afe851028528b5c4 | [log] [tgz] |
---|---|---|
author | Greg Daniel <egdaniel@google.com> | Tue Jun 02 11:10:41 2020 -0400 |
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | Tue Jun 02 15:58:28 2020 +0000 |
tree | 436cdbdf2636acaa96c2bd5574eb6c30661dc606 | |
parent | 674a5ccd3cd8676eb013d7a647ebb8ec16e08c76 [diff] [blame] |
Add support for vk image sharing mode and handle queues xfers correctly. Change-Id: I9dbe6020d67cc452c9cbbdeace68f1d01275b419 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/293559 Commit-Queue: Greg Daniel <egdaniel@google.com> Reviewed-by: Jim Van Verth <jvanverth@google.com>
diff --git a/src/gpu/GrAHardwareBufferUtils.cpp b/src/gpu/GrAHardwareBufferUtils.cpp index b701daf..badb8ee 100644 --- a/src/gpu/GrAHardwareBufferUtils.cpp +++ b/src/gpu/GrAHardwareBufferUtils.cpp
@@ -486,6 +486,7 @@ // "foreign" device we can leave them as external. imageInfo.fCurrentQueueFamily = VK_QUEUE_FAMILY_EXTERNAL; imageInfo.fYcbcrConversionInfo = *ycbcrConversion; + imageInfo.fSharingMode = imageCreateInfo.sharingMode; *deleteProc = delete_vk_image; *updateProc = update_vk_image;