Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(546)

Issue 2348523002: Support use of non-coherent memory allocations in Vulkan. (Closed)

Created:
4 years, 3 months ago by jvanverth1
Modified:
4 years, 3 months ago
Reviewers:
egdaniel, bsalomon
CC:
reviews_skia.org
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Support use of non-coherent memory allocations in Vulkan. BUG=skia:5034 GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2348523002 Committed: https://skia.googlesource.com/skia/+/9d54afc38b171c01a03b34e773d154fcf83d97dc

Patch Set 1 #

Patch Set 2 : Fix viewer init #

Total comments: 12

Patch Set 3 : Some minor tweaks #

Patch Set 4 : Some more clean up #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+86 lines, -36 lines) Patch
M include/gpu/vk/GrVkTypes.h View 1 chunk +5 lines, -0 lines 0 comments Download
M src/gpu/vk/GrVkBuffer.cpp View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M src/gpu/vk/GrVkGpu.cpp View 1 2 9 chunks +12 lines, -9 lines 2 comments Download
M src/gpu/vk/GrVkMemory.h View 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/vk/GrVkMemory.cpp View 1 2 3 8 chunks +64 lines, -26 lines 0 comments Download
M tools/viewer/sk_app/VulkanWindowContext.cpp View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 23 (7 generated)
jvanverth1
I'm not seeing lot of difference with this, probably because I'm not getting non-coherent allocations ...
4 years, 3 months ago (2016-09-15 20:16:14 UTC) #3
egdaniel
https://codereview.chromium.org/2348523002/diff/20001/src/gpu/vk/GrVkMemory.cpp File src/gpu/vk/GrVkMemory.cpp (right): https://codereview.chromium.org/2348523002/diff/20001/src/gpu/vk/GrVkMemory.cpp#newcode60 src/gpu/vk/GrVkMemory.cpp:60: VkMemoryPropertyFlags desiredMemProps = dynamic ? VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | Is it ...
4 years, 3 months ago (2016-09-15 20:42:18 UTC) #4
jvanverth1
https://codereview.chromium.org/2348523002/diff/20001/src/gpu/vk/GrVkMemory.cpp File src/gpu/vk/GrVkMemory.cpp (right): https://codereview.chromium.org/2348523002/diff/20001/src/gpu/vk/GrVkMemory.cpp#newcode60 src/gpu/vk/GrVkMemory.cpp:60: VkMemoryPropertyFlags desiredMemProps = dynamic ? VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | On 2016/09/15 ...
4 years, 3 months ago (2016-09-19 19:40:46 UTC) #5
egdaniel
https://codereview.chromium.org/2348523002/diff/20001/src/gpu/vk/GrVkMemory.cpp File src/gpu/vk/GrVkMemory.cpp (right): https://codereview.chromium.org/2348523002/diff/20001/src/gpu/vk/GrVkMemory.cpp#newcode60 src/gpu/vk/GrVkMemory.cpp:60: VkMemoryPropertyFlags desiredMemProps = dynamic ? VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | On 2016/09/19 ...
4 years, 3 months ago (2016-09-19 19:56:21 UTC) #6
jvanverth1
https://codereview.chromium.org/2348523002/diff/20001/src/gpu/vk/GrVkMemory.cpp File src/gpu/vk/GrVkMemory.cpp (right): https://codereview.chromium.org/2348523002/diff/20001/src/gpu/vk/GrVkMemory.cpp#newcode60 src/gpu/vk/GrVkMemory.cpp:60: VkMemoryPropertyFlags desiredMemProps = dynamic ? VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT | On 2016/09/19 ...
4 years, 3 months ago (2016-09-20 14:03:55 UTC) #7
egdaniel
so in general l g t m, but rebase this with the latest change I ...
4 years, 3 months ago (2016-09-20 14:10:26 UTC) #8
jvanverth1
Rebased and a few more minor cleanups.
4 years, 3 months ago (2016-09-20 15:12:38 UTC) #9
egdaniel
lgtm with the one comment on invalidate and map https://codereview.chromium.org/2348523002/diff/60001/src/gpu/vk/GrVkGpu.cpp File src/gpu/vk/GrVkGpu.cpp (right): https://codereview.chromium.org/2348523002/diff/60001/src/gpu/vk/GrVkGpu.cpp#newcode1755 src/gpu/vk/GrVkGpu.cpp:1755: ...
4 years, 3 months ago (2016-09-20 15:23:22 UTC) #10
jvanverth1
https://codereview.chromium.org/2348523002/diff/60001/src/gpu/vk/GrVkGpu.cpp File src/gpu/vk/GrVkGpu.cpp (right): https://codereview.chromium.org/2348523002/diff/60001/src/gpu/vk/GrVkGpu.cpp#newcode1755 src/gpu/vk/GrVkGpu.cpp:1755: GrVkMemory::InvalidateMappedAlloc(this, transferBuffer->alloc()); On 2016/09/20 15:23:22, egdaniel wrote: > Is ...
4 years, 3 months ago (2016-09-20 15:30:54 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2348523002/60001
4 years, 3 months ago (2016-09-20 15:33:34 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: skia_presubmit-Trybot on master.client.skia.fyi (JOB_FAILED, http://build.chromium.org/p/client.skia.fyi/builders/skia_presubmit-Trybot/builds/14001)
4 years, 3 months ago (2016-09-20 15:35:28 UTC) #15
jvanverth1
bsalomon@, PTAL
4 years, 3 months ago (2016-09-20 15:40:59 UTC) #17
bsalomon
api lgtm
4 years, 3 months ago (2016-09-20 15:56:29 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2348523002/60001
4 years, 3 months ago (2016-09-20 16:00:31 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://skia.googlesource.com/skia/+/9d54afc38b171c01a03b34e773d154fcf83d97dc
4 years, 3 months ago (2016-09-20 16:20:06 UTC) #22
bsalomon
4 years, 3 months ago (2016-09-20 19:32:45 UTC) #23
Message was sent while issue was closed.
I think this introduced a few warnings-as-errors in the linux build:

/usr/local/google/home/bsalomon/src/skia/tests/VkWrapTests.cpp:57:49: error:
missing field 'fFlags' initializer [-Werror,-Wmissing-field-initializers]
    backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0 };
                                                ^
/usr/local/google/home/bsalomon/src/skia/tests/VkWrapTests.cpp:103:49: error:
missing field 'fFlags' initializer [-Werror,-Wmissing-field-initializers]
    backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0 };
                                                ^
[ 88%] Building CXX object
CMakeFiles/dm.dir/usr/local/google/home/bsalomon/src/skia/gm/filterbitmap.o
[ 88%] Building CXX object
CMakeFiles/dm.dir/usr/local/google/home/bsalomon/src/skia/gm/filterfastbounds.o
[ 88%] Building CXX object
CMakeFiles/dm.dir/usr/local/google/home/bsalomon/src/skia/gm/filterindiabox.o
/usr/local/google/home/bsalomon/src/skia/tests/VkWrapTests.cpp:149:49: error:
missing field 'fFlags' initializer [-Werror,-Wmissing-field-initializers]
    backendCopy.fAlloc = { VK_NULL_HANDLE, 0, 0 };

Powered by Google App Engine
This is Rietveld 408576698