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

Issue 1145273002: Use high precision vertex attributes. (Closed)

Created:
5 years, 7 months ago by Stephen White
Modified:
5 years, 7 months ago
Reviewers:
joshualitt, bsalomon
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use high precision vertex attributes. Specifying vertex attributes and the view matrix as mediump causes bad artifacts on Mali T6XX. Covered by the bigmatrix GM in msaa4 mode. BUG:skia=3545,3771 Committed: https://skia.googlesource.com/skia/+/f2539d50f911914af0f80f0092ff8c654869e650

Patch Set 1 #

Patch Set 2 : Make only inPosition attribute highp #

Patch Set 3 : Change other inPosition * fViewMatrix users to highp #

Total comments: 20

Patch Set 4 : 100-col fixes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+27 lines, -13 lines) Patch
M src/gpu/GrDefaultGeoProcFactory.cpp View 1 2 3 1 chunk +2 lines, -1 line 0 comments Download
M src/gpu/GrOvalRenderer.cpp View 1 2 3 2 chunks +4 lines, -2 lines 0 comments Download
M src/gpu/GrPrimitiveProcessor.h View 1 2 3 1 chunk +5 lines, -2 lines 0 comments Download
M src/gpu/effects/GrBezierEffect.cpp View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M src/gpu/effects/GrDistanceFieldGeoProc.cpp View 1 2 3 3 chunks +6 lines, -3 lines 0 comments Download
M src/gpu/gl/GrGLPrimitiveProcessor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/gpu/gl/builders/GrGLVertexShaderBuilder.h View 1 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 15 (3 generated)
Stephen White
If this change causes perf regressions on non-Mali platforms, we should consider limiting the change ...
5 years, 7 months ago (2015-05-20 19:11:53 UTC) #2
Stephen White
New patch up: limit highp to only inPosition in default GeoProcFactory.
5 years, 7 months ago (2015-05-20 19:41:15 UTC) #3
bsalomon
Passing the buck on this one to Joshua as he knows the builder and GP ...
5 years, 7 months ago (2015-05-20 19:46:21 UTC) #5
bsalomon
Passing the buck on this one to Joshua as he knows the builder and GP ...
5 years, 7 months ago (2015-05-20 19:46:22 UTC) #6
joshualitt
On 2015/05/20 19:46:22, bsalomon wrote: > Passing the buck on this one to Joshua as ...
5 years, 7 months ago (2015-05-20 19:54:40 UTC) #7
Stephen White
On 2015/05/20 19:54:40, joshualitt wrote: > On 2015/05/20 19:46:22, bsalomon wrote: > > Passing the ...
5 years, 7 months ago (2015-05-20 20:08:53 UTC) #8
Stephen White
New patch up: also modify oval, beziereffect and GrDistanceFieldGeoProc to use highp for inPosition.
5 years, 7 months ago (2015-05-20 20:33:50 UTC) #9
joshualitt
nits https://codereview.chromium.org/1145273002/diff/40001/src/gpu/GrDefaultGeoProcFactory.cpp File src/gpu/GrDefaultGeoProcFactory.cpp (right): https://codereview.chromium.org/1145273002/diff/40001/src/gpu/GrDefaultGeoProcFactory.cpp#newcode196 src/gpu/GrDefaultGeoProcFactory.cpp:196: fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType, kHigh_GrSLPrecision)); newline https://codereview.chromium.org/1145273002/diff/40001/src/gpu/GrOvalRenderer.cpp File ...
5 years, 7 months ago (2015-05-20 20:36:11 UTC) #10
Stephen White
New patch up: PTAL. Thanks! https://codereview.chromium.org/1145273002/diff/40001/src/gpu/GrDefaultGeoProcFactory.cpp File src/gpu/GrDefaultGeoProcFactory.cpp (right): https://codereview.chromium.org/1145273002/diff/40001/src/gpu/GrDefaultGeoProcFactory.cpp#newcode196 src/gpu/GrDefaultGeoProcFactory.cpp:196: fInPosition = &this->addVertexAttrib(Attribute("inPosition", kVec2f_GrVertexAttribType, ...
5 years, 7 months ago (2015-05-20 20:47:43 UTC) #11
joshualitt
On 2015/05/20 20:47:43, Stephen White wrote: > New patch up: PTAL. Thanks! > > https://codereview.chromium.org/1145273002/diff/40001/src/gpu/GrDefaultGeoProcFactory.cpp ...
5 years, 7 months ago (2015-05-20 20:49:23 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1145273002/60001
5 years, 7 months ago (2015-05-20 20:57:31 UTC) #14
commit-bot: I haz the power
5 years, 7 months ago (2015-05-20 21:03:47 UTC) #15
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://skia.googlesource.com/skia/+/f2539d50f911914af0f80f0092ff8c654869e650

Powered by Google App Engine
This is Rietveld 408576698