diff options
author | jvanverth <jvanverth@google.com> | 2016-09-20 09:20:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-09-20 09:20:03 -0700 |
commit | 9d54afc38b171c01a03b34e773d154fcf83d97dc (patch) | |
tree | c618bac30c9ced452300c5835993fad6bb41fb36 /include/gpu/vk | |
parent | a624bf3d1cb454c1959c5bbbf23a3afdfa3481f3 (diff) |
Support use of non-coherent memory allocations in Vulkan.
BUG=skia:5034
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2348523002
Review-Url: https://codereview.chromium.org/2348523002
Diffstat (limited to 'include/gpu/vk')
-rw-r--r-- | include/gpu/vk/GrVkTypes.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/gpu/vk/GrVkTypes.h b/include/gpu/vk/GrVkTypes.h index 782cb90b21..aa1334adca 100644 --- a/include/gpu/vk/GrVkTypes.h +++ b/include/gpu/vk/GrVkTypes.h @@ -34,6 +34,11 @@ struct GrVkAlloc { VkDeviceMemory fMemory; // can be VK_NULL_HANDLE iff Tex is an RT and uses borrow semantics VkDeviceSize fOffset; VkDeviceSize fSize; // this can be indeterminate iff Tex uses borrow semantics + uint32_t fFlags; + + enum Flag { + kNoncoherent_Flag = 0x1, // memory must be flushed to device after mapping + }; }; struct GrVkImageInfo { |