aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar jvanverth <jvanverth@google.com>2016-09-20 09:20:03 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-09-20 09:20:03 -0700
commit9d54afc38b171c01a03b34e773d154fcf83d97dc (patch)
treec618bac30c9ced452300c5835993fad6bb41fb36 /include
parenta624bf3d1cb454c1959c5bbbf23a3afdfa3481f3 (diff)
Support use of non-coherent memory allocations in Vulkan.
Diffstat (limited to 'include')
-rw-r--r--include/gpu/vk/GrVkTypes.h5
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 {