Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(539)

Issue 6299067: New Morphology benchmarks, attempt to speed up GPU shader (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 6 months ago by TomH
Modified:
12 years, 6 months ago
CC:
bsalomon
Base URL:
http://skia.googlecode.com/svn/trunk/
Visibility:
Public.

Description

We don't get any speedup from unrolling the GL loop on Linux, where we did seem to get speedup from unrolling convolution, so just proposing this as a benchmark. Erode/Dilate are quite slow over a 400x400 circle, so this benchmark only repeats 3x. We might consider reducing the size of the circle, too - this is just cut & pasted from the blur benchmark. If erode/dilate are commonly seen in the wild, we can probably SSE-accelerate them for large wins; more than 60% of the time in this benchmark is spent on: unpack an ARGB into 4 unsigned bytes take the max of each of the four components If the memory->register penalty isn't too bad, pmaxub seems custom-made for this issue.

Patch Set 1 #

Patch Set 2 : Remove ineffective GLSL changes #

Total comments: 2

Patch Set 3 : Fix copyright date #

Unified diffs Side-by-side diffs Delta from patch set Stats (+110 lines, -0 lines) Patch
A bench/MorphologyBench.cpp View 1 2 1 chunk +109 lines, -0 lines 0 comments Download
M gyp/bench.gypi View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 9
TomH
12 years, 6 months ago (2012-06-11 18:09:17 UTC) #1
Stephen White
Note that morphology does not currently respect the texture instruction limit of DX9SM2 (32), so ...
12 years, 6 months ago (2012-06-11 18:43:15 UTC) #2
TomH
On 2012/06/11 18:43:15, Stephen White wrote: > Note that morphology does not currently respect the ...
12 years, 6 months ago (2012-06-11 18:44:44 UTC) #3
Stephen White
http://codereview.appspot.com/6299067/diff/2001/bench/MorphologyBench.cpp File bench/MorphologyBench.cpp (right): http://codereview.appspot.com/6299067/diff/2001/bench/MorphologyBench.cpp#newcode3 bench/MorphologyBench.cpp:3: * Copyright 2011 Google Inc. 2011 -> 2012
12 years, 6 months ago (2012-06-11 18:45:45 UTC) #4
Stephen White
On 2012/06/11 18:44:44, TomH wrote: > On 2012/06/11 18:43:15, Stephen White wrote: > > Note ...
12 years, 6 months ago (2012-06-11 18:47:34 UTC) #5
TomH
http://codereview.appspot.com/6299067/diff/2001/bench/MorphologyBench.cpp File bench/MorphologyBench.cpp (right): http://codereview.appspot.com/6299067/diff/2001/bench/MorphologyBench.cpp#newcode3 bench/MorphologyBench.cpp:3: * Copyright 2011 Google Inc. On 2012/06/11 18:45:45, Stephen ...
12 years, 6 months ago (2012-06-11 18:48:29 UTC) #6
Stephen White
LGTM
12 years, 6 months ago (2012-06-11 19:18:28 UTC) #7
TomH
Closed with r4230.
12 years, 6 months ago (2012-06-11 19:22:25 UTC) #8
TomH
12 years, 6 months ago (2012-06-11 20:49:14 UTC) #9
Broke buildbots due to poor performance of fixed point implementation; those
benchmarks disabled with r4231.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b