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

Issue 1977403002: Refactor creation of GrVkRenderPasses to make them move general (Closed)

Created:
4 years, 7 months ago by egdaniel
Modified:
4 years, 6 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Refactor creation of GrVkRenderPasses to make them move general This change is a refactorization to open up more flexable use for render passes in the future. Once we start bundling draw calls into a single render pass we will need to start using specific load and store ops instead of the default currently of load and store everything. We still will need to simply get a compatible render pass for creation of framebuffers and pipeline objects. These render passes don't need to know load and store ops. Thus in this change, I'm defaulting the "compatible" render pass to always be the one which both loads and stores. All other load/store combinations will be created lazily when requested for a specific draw (future change). The CompatibleRPHandle is a way for us to avoid analysing the RenderTarget every time we want to get a new GrVkRenderPass. BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1977403002 Committed: https://skia.googlesource.com/skia/+/d62e28b19a23b913c549b7891ecf79e779577181

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : dynamic array #

Total comments: 6

Patch Set 4 : review nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+177 lines, -50 lines) Patch
M src/gpu/vk/GrVkRenderPass.h View 2 chunks +15 lines, -3 lines 0 comments Download
M src/gpu/vk/GrVkRenderPass.cpp View 1 2 3 5 chunks +36 lines, -25 lines 0 comments Download
M src/gpu/vk/GrVkRenderTarget.h View 2 chunks +3 lines, -0 lines 0 comments Download
M src/gpu/vk/GrVkRenderTarget.cpp View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/vk/GrVkResourceProvider.h View 1 2 3 5 chunks +53 lines, -6 lines 0 comments Download
M src/gpu/vk/GrVkResourceProvider.cpp View 1 2 5 chunks +68 lines, -15 lines 0 comments Download

Messages

Total messages: 14 (5 generated)
egdaniel
4 years, 7 months ago (2016-05-16 17:03:21 UTC) #4
egdaniel
ping
4 years, 7 months ago (2016-05-17 20:00:10 UTC) #5
jvanverth1
LGTM + nits https://codereview.chromium.org/1977403002/diff/10007/src/gpu/vk/GrVkRenderPass.cpp File src/gpu/vk/GrVkRenderPass.cpp (right): https://codereview.chromium.org/1977403002/diff/10007/src/gpu/vk/GrVkRenderPass.cpp#newcode24 src/gpu/vk/GrVkRenderPass.cpp:24: if (VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL == layout) { I ...
4 years, 7 months ago (2016-05-18 20:42:21 UTC) #6
egdaniel
This has been updated from the original review to now use a dynamic array to ...
4 years, 6 months ago (2016-06-02 17:26:25 UTC) #7
jvanverth1
https://codereview.chromium.org/1977403002/diff/30001/src/gpu/vk/GrVkRenderPass.cpp File src/gpu/vk/GrVkRenderPass.cpp (right): https://codereview.chromium.org/1977403002/diff/30001/src/gpu/vk/GrVkRenderPass.cpp#newcode19 src/gpu/vk/GrVkRenderPass.cpp:19: const AttachmentDesc& desc, Nit: tabs https://codereview.chromium.org/1977403002/diff/30001/src/gpu/vk/GrVkResourceProvider.cpp File src/gpu/vk/GrVkResourceProvider.cpp (right): ...
4 years, 6 months ago (2016-06-02 20:09:35 UTC) #8
egdaniel
https://codereview.chromium.org/1977403002/diff/30001/src/gpu/vk/GrVkRenderPass.cpp File src/gpu/vk/GrVkRenderPass.cpp (right): https://codereview.chromium.org/1977403002/diff/30001/src/gpu/vk/GrVkRenderPass.cpp#newcode19 src/gpu/vk/GrVkRenderPass.cpp:19: const AttachmentDesc& desc, On 2016/06/02 20:09:35, jvanverth1 wrote: > ...
4 years, 6 months ago (2016-06-02 20:50:26 UTC) #9
jvanverth1
lgtm
4 years, 6 months ago (2016-06-02 21:27:40 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1977403002/50001
4 years, 6 months ago (2016-06-07 15:29:41 UTC) #12
commit-bot: I haz the power
4 years, 6 months ago (2016-06-07 15:43:33 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:50001) as
https://skia.googlesource.com/skia/+/d62e28b19a23b913c549b7891ecf79e779577181

Powered by Google App Engine
This is Rietveld 408576698