diff options
author | 2018-02-23 09:16:23 -0500 | |
---|---|---|
committer | 2018-02-23 20:17:16 +0000 | |
commit | 9fb6cf4c49b0f095e5cc005feb05b5522731421b (patch) | |
tree | 0dd8a5d907f580a3d99c317d76f59fcdfe88f4ee /tools/sk_app | |
parent | aa67ab9ee77863327922408e5d98eb4273141c5c (diff) |
Fixes to alignment issues with regards to mapped vulkan memory.
Bug: skia:
Change-Id: Ida9813fe774580a6d157b8eb8d330488c8e8c4bc
Reviewed-on: https://skia-review.googlesource.com/109483
Commit-Queue: Greg Daniel <egdaniel@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'tools/sk_app')
-rw-r--r-- | tools/sk_app/VulkanWindowContext.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/sk_app/VulkanWindowContext.cpp b/tools/sk_app/VulkanWindowContext.cpp index 6237ee09ae..d7839bc189 100644 --- a/tools/sk_app/VulkanWindowContext.cpp +++ b/tools/sk_app/VulkanWindowContext.cpp @@ -287,7 +287,7 @@ void VulkanWindowContext::createBuffers(VkFormat format, SkColorType colorType) GrVkImageInfo info; info.fImage = fImages[i]; - info.fAlloc = { VK_NULL_HANDLE, 0, 0, 0 }; + info.fAlloc = GrVkAlloc(); info.fImageLayout = VK_IMAGE_LAYOUT_UNDEFINED; info.fImageTiling = VK_IMAGE_TILING_OPTIMAL; info.fFormat = format; |