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

Issue 1040303002: Use texture barriers to read directly from the RT (Closed)

Created:
5 years, 8 months ago by Chris Dalton
Modified:
5 years, 7 months ago
CC:
reviews_skia.org, vbuzinov, Kimmo Kinnunen
Base URL:
https://skia.googlesource.com/skia.git@upload_zz1_reverseiter
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use texture barriers to read directly from the RT Updates GrXferProcessor to read directly from the RT texture when texture barriers are supported and it needs to know the dst color. Also adds the notion of an Xfer barrier and uses it to issue texture barriers when the XP will read the RT. BUG=skia: Committed: https://skia.googlesource.com/skia/+/9954bc38c498f6b9e9d8c0bcc5cd00d45bfc6e23

Patch Set 1 #

Patch Set 2 : #

Total comments: 6

Patch Set 3 : #

Patch Set 4 : Add Xfer barriers with glTextureBarrier instead of dst copies #

Total comments: 2

Patch Set 5 : Minor change: make willNeedXferBarrier not virtual #

Patch Set 6 : Get tracking right #

Patch Set 7 : Rebase #

Total comments: 1

Patch Set 8 : Rename setXferBarrier to xferBarrier #

Patch Set 9 : fix windows build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+106 lines, -1 line) Patch
M include/gpu/GrXferProcessor.h View 1 2 3 4 5 6 2 chunks +16 lines, -0 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 1 2 3 4 5 6 1 chunk +13 lines, -1 line 0 comments Download
M src/gpu/GrGpu.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M src/gpu/GrTargetCommands.h View 1 2 3 4 5 6 4 chunks +17 lines, -0 lines 0 comments Download
M src/gpu/GrTargetCommands.cpp View 1 2 3 4 5 6 7 3 chunks +25 lines, -0 lines 0 comments Download
M src/gpu/GrTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/GrXferProcessor.cpp View 1 2 3 4 5 6 1 chunk +13 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download
M tests/GLProgramsTest.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (7 generated)
Chris Dalton
Depends on https://codereview.chromium.org/1035083004/
5 years, 8 months ago (2015-03-31 05:40:25 UTC) #2
Chris Dalton
5 years, 8 months ago (2015-03-31 06:40:43 UTC) #3
egdaniel
adding josh for batching stuff and where Ganesh is heading
5 years, 8 months ago (2015-03-31 13:33:04 UTC) #5
egdaniel
https://codereview.chromium.org/1040303002/diff/20001/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (right): https://codereview.chromium.org/1040303002/diff/20001/src/gpu/GrDrawTarget.cpp#newcode473 src/gpu/GrDrawTarget.cpp:473: if (!pipelineBuilder->willBlendCoherently(*this->caps())) { So I feel like somewhere we ...
5 years, 8 months ago (2015-03-31 14:23:41 UTC) #6
Chris Dalton
https://codereview.chromium.org/1040303002/diff/20001/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (right): https://codereview.chromium.org/1040303002/diff/20001/src/gpu/GrDrawTarget.cpp#newcode473 src/gpu/GrDrawTarget.cpp:473: if (!pipelineBuilder->willBlendCoherently(*this->caps())) { On 2015/03/31 14:23:41, egdaniel wrote: > ...
5 years, 8 months ago (2015-03-31 17:06:42 UTC) #7
joshualitt
Chris, this looks like a good change, however, all of our draws, outside of text, ...
5 years, 8 months ago (2015-03-31 18:29:37 UTC) #8
bsalomon
Is it possible that we could automatically insert the barriers when flushing, perhaps in the ...
5 years, 8 months ago (2015-04-01 13:32:26 UTC) #9
egdaniel
On 2015/04/01 13:32:26, bsalomon wrote: > Is it possible that we could automatically insert the ...
5 years, 8 months ago (2015-04-01 13:39:22 UTC) #10
bsalomon
On 2015/04/01 13:39:22, egdaniel wrote: > On 2015/04/01 13:32:26, bsalomon wrote: > > Is it ...
5 years, 8 months ago (2015-04-01 13:55:57 UTC) #11
Mark Kilgard
are my comments useful? otherwise lgtm https://codereview.chromium.org/1040303002/diff/20001/src/gpu/GrDrawTarget.cpp File src/gpu/GrDrawTarget.cpp (right): https://codereview.chromium.org/1040303002/diff/20001/src/gpu/GrDrawTarget.cpp#newcode473 src/gpu/GrDrawTarget.cpp:473: if (!pipelineBuilder->willBlendCoherently(*this->caps())) { ...
5 years, 8 months ago (2015-04-02 23:02:38 UTC) #12
Chris Dalton
Reworked to make the barriers more generic. Can you guys take a look? The code ...
5 years, 8 months ago (2015-04-16 10:43:18 UTC) #13
Chris Dalton
Ok, one more major rework :) I decided to scratch the dst copy stuff. It ...
5 years, 8 months ago (2015-04-17 08:06:06 UTC) #14
bsalomon
lgtm https://codereview.chromium.org/1040303002/diff/60001/src/gpu/gl/GrGLGpu.cpp File src/gpu/gl/GrGLGpu.cpp (right): https://codereview.chromium.org/1040303002/diff/60001/src/gpu/gl/GrGLGpu.cpp#newcode2774 src/gpu/gl/GrGLGpu.cpp:2774: SkASSERT(this->caps()->textureBarrierSupport()); On 2015/04/17 08:06:05, Chris Dalton wrote: > ...
5 years, 8 months ago (2015-04-21 15:19:28 UTC) #15
Chris Dalton
https://codereview.chromium.org/1040303002/diff/120001/src/gpu/GrTargetCommands.cpp File src/gpu/GrTargetCommands.cpp (right): https://codereview.chromium.org/1040303002/diff/120001/src/gpu/GrTargetCommands.cpp#newcode422 src/gpu/GrTargetCommands.cpp:422: This part of the rebase was nontrivial. I removed ...
5 years, 7 months ago (2015-04-29 18:42:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1040303002/140001
5 years, 7 months ago (2015-04-29 19:48:05 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: Build-Win-MSVC-x86_64-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86_64-Debug-Trybot/builds/765)
5 years, 7 months ago (2015-04-29 20:01:41 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1040303002/160001
5 years, 7 months ago (2015-04-29 21:14:00 UTC) #24
commit-bot: I haz the power
5 years, 7 months ago (2015-04-29 21:17:05 UTC) #25
Message was sent while issue was closed.
Committed patchset #9 (id:160001) as
https://skia.googlesource.com/skia/+/9954bc38c498f6b9e9d8c0bcc5cd00d45bfc6e23

Powered by Google App Engine
This is Rietveld 408576698