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

Issue 2123693002: Revert of Begin instanced rendering for simple shapes (Closed)

Created:
4 years, 5 months ago by Kunihiko Sakamoto
Modified:
4 years, 5 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

Revert of Begin instanced rendering for simple shapes (patchset #20 id:380001 of https://codereview.chromium.org/2066993003/ ) Reason for revert: This caused static initializer regressions in Chromium (crbug.com/625728). Relevant build logs here: Linux: https://build.chromium.org/p/chromium/builders/Linux%20x64/builds/21849 Mac: https://build.chromium.org/p/chromium/builders/Mac/builds/17350 Relevant lines from the error log: Linux: # InstanceProcessor.cpp GrUniqueKey::GenerateDomain() # InstanceProcessor.cpp gr_instanced::kShapeBufferDomain FAILED linux-release-64/sizes/nacl_helper-si/initializers: actual 8, expected 7, better lower FAILED linux-release-64/sizes/chrome-si/initializers: actual 8, expected 7, better lower Mac: FAILED mac-release/sizes/chrome-si/initializers: actual 2, expected 0, better lower Original issue's description: > Begin instanced rendering for simple shapes > > Adds a module that performs instanced rendering and starts using it > for a select subset of draws on Mac GL platforms. The instance > processor can currently handle rects, ovals, round rects, and double > round rects. It can generalize shapes as round rects in order to > improve batching. The instance processor also employs new drawing > algorithms, irrespective of instanced rendering, that improve GPU-side > performance (e.g. sample mask, different triangle layouts, etc.). > > This change only scratches the surface of instanced rendering. The > majority of draws still only have one instance. Future work may > include: > > * Passing coord transforms through the texel buffer. > * Sending FP uniforms through instanced vertex attribs. > * Using instanced rendering for more draws (stencil writes, > drawAtlas, etc.). > * Adding more shapes to the instance processor’s repertoire. > * Batching draws that have mismatched scissors (analyzing draw > bounds, inserting clip planes, etc.). > * Bindless textures. > * Uber shaders. > > BUG=skia: > GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2066993003 > > Committed: https://skia.googlesource.com/skia/+/42eafa4bc00354b132ad114d22ed6b95d8849891 NOTREECHECKS=true TBR=bsalomon@google.com,egdaniel@google.com,robertphillips@google.com,csmartdalton@google.com # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=skia: Committed: https://skia.googlesource.com/skia/+/ec7f2ac7285ad9b1ea84e7aa68a741ae2a07a777

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+32 lines, -3595 lines) Patch
M gyp/gpu.gypi View 2 chunks +0 lines, -9 lines 0 comments Download
M include/gpu/GrDrawContext.h View 2 chunks +0 lines, -2 lines 0 comments Download
D include/private/GrInstancedPipelineInfo.h View 1 chunk +0 lines, -49 lines 0 comments Download
M src/gpu/GrDrawContext.cpp View 9 chunks +16 lines, -84 lines 0 comments Download
M src/gpu/GrDrawContextPriv.h View 2 chunks +0 lines, -5 lines 0 comments Download
M src/gpu/GrDrawTarget.h View 2 chunks +15 lines, -22 lines 0 comments Download
M src/gpu/GrDrawTarget.cpp View 4 chunks +1 line, -11 lines 0 comments Download
M src/gpu/GrDrawingManager.cpp View 3 chunks +0 lines, -14 lines 0 comments Download
M src/gpu/GrGpu.h View 3 chunks +0 lines, -10 lines 0 comments Download
M src/gpu/gl/GrGLGpu.h View 3 chunks +0 lines, -5 lines 0 comments Download
M src/gpu/gl/GrGLGpu.cpp View 3 chunks +0 lines, -7 lines 0 comments Download
D src/gpu/instanced/GLInstancedRendering.h View 1 chunk +0 lines, -60 lines 0 comments Download
D src/gpu/instanced/GLInstancedRendering.cpp View 1 chunk +0 lines, -301 lines 0 comments Download
D src/gpu/instanced/InstanceProcessor.h View 1 chunk +0 lines, -63 lines 0 comments Download
D src/gpu/instanced/InstanceProcessor.cpp View 1 chunk +0 lines, -2102 lines 0 comments Download
D src/gpu/instanced/InstancedRendering.h View 1 chunk +0 lines, -186 lines 0 comments Download
D src/gpu/instanced/InstancedRendering.cpp View 1 chunk +0 lines, -474 lines 0 comments Download
D src/gpu/instanced/InstancedRenderingTypes.h View 1 chunk +0 lines, -191 lines 0 comments Download

Messages

Total messages: 17 (9 generated)
Kunihiko Sakamoto
Created Revert of Begin instanced rendering for simple shapes
4 years, 5 months ago (2016-07-05 04:10:53 UTC) #2
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/2123693002/1
4 years, 5 months ago (2016-07-05 04:10:55 UTC) #3
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 5 months ago (2016-07-05 04:10:57 UTC) #4
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Please ask for an LGTM from a full ...
4 years, 5 months ago (2016-07-05 10:10:05 UTC) #6
rmistry
lgtm
4 years, 5 months ago (2016-07-05 10:49:25 UTC) #8
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/2123693002/1
4 years, 5 months ago (2016-07-05 10:49:38 UTC) #10
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/2123693002/1
4 years, 5 months ago (2016-07-05 10:53:57 UTC) #15
commit-bot: I haz the power
4 years, 5 months ago (2016-07-05 10:54:58 UTC) #17
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/ec7f2ac7285ad9b1ea84e7aa68a741ae2a07a777

Powered by Google App Engine
This is Rietveld 408576698