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

Issue 2201613002: Revert of GrFP can express distance vector field req., program builder declares variable for it (Closed)

Created:
4 years, 4 months ago by mtklein
Modified:
4 years, 4 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia@dvonbeck-bevel-api-change
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Revert of GrFP can express distance vector field req., program builder declares variable for it (patchset #20 id:370001 of https://codereview.chromium.org/2114993002/ ) Reason for revert: UBSAN says we're reading a bad bool here: bool usesDistanceVectorField() const { return fUsesDistanceVectorField; } ../../../include/gpu/GrPaint.h:83:51: runtime error: load of value 239, which is not a valid value for type 'bool' SUMMARY: AddressSanitizer: undefined-behavior ../../../include/gpu/GrPaint.h:83:51 in Seems likely also the root of Valgrind failure: https://luci-milo.appspot.com/swarming/task/30522e4f2241cb10 Original issue's description: > GrFP can express distance vector field req., program builder declares variable for it > > This update allows fragment processors to require a field of vectors to the nearest edge. This requirement propagates: > > - from child FPs to their parent > - from parent FPs to the GrPaint > - from GrPaint through the PipelineBuilder into GrPipeline > - acessed from GrPipeline by GrGLSLProgramBuilder > > GrGLSL generates a variable for the distance vector and passes it down to the GeometryProcessor->emitCode() method. > > This CL's base is the CL for adding the BevelNormalSource API: https://codereview.chromium.org/2080993002 > > BUG=skia: > GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2114993002 > > Committed: https://skia.googlesource.com/skia/+/4ef6dfa7089c092c67b0d5ec34e89c1e319af196 TBR=egdaniel@google.com,robertphillips@google.com,bsalomon@google.com,dvonbeck@google.com # Not skipping CQ checks because original CL landed more than 1 days ago. BUG=skia: Committed: https://skia.googlesource.com/skia/+/02aed95f9c7c6745c02e9aa8604d27d7a3ae93db

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -157 lines) Patch
M gyp/core.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M gyp/ports.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
M include/gpu/GrFragmentProcessor.h View 3 chunks +0 lines, -9 lines 0 comments Download
M include/gpu/GrPaint.h View 5 chunks +0 lines, -9 lines 0 comments Download
M src/core/SkNormalBevelSource.cpp View 4 chunks +5 lines, -9 lines 0 comments Download
M src/core/SkNormalFlatSource.cpp View 3 chunks +4 lines, -6 lines 0 comments Download
M src/core/SkNormalMapSource.cpp View 3 chunks +4 lines, -6 lines 0 comments Download
M src/core/SkNormalSource.h View 1 chunk +1 line, -1 line 0 comments Download
D src/core/SkNormalSourcePriv.h View 1 chunk +0 lines, -57 lines 0 comments Download
M src/gpu/GrFragmentProcessor.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M src/gpu/GrPipeline.h View 2 chunks +1 line, -5 lines 0 comments Download
M src/gpu/GrPipeline.cpp View 1 chunk +0 lines, -3 lines 0 comments Download
M src/gpu/GrPipelineBuilder.h View 2 chunks +1 line, -9 lines 0 comments Download
M src/gpu/GrPipelineBuilder.cpp View 1 chunk +0 lines, -2 lines 0 comments Download
M src/gpu/GrPrimitiveProcessor.h View 1 chunk +0 lines, -4 lines 0 comments Download
M src/gpu/glsl/GrGLSLFragmentProcessor.h View 3 chunks +2 lines, -5 lines 0 comments Download
M src/gpu/glsl/GrGLSLFragmentProcessor.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M src/gpu/glsl/GrGLSLFragmentShaderBuilder.h View 3 chunks +0 lines, -6 lines 0 comments Download
M src/gpu/glsl/GrGLSLFragmentShaderBuilder.cpp View 1 chunk +0 lines, -4 lines 0 comments Download
M src/gpu/glsl/GrGLSLPrimitiveProcessor.h View 4 chunks +1 line, -3 lines 0 comments Download
M src/gpu/glsl/GrGLSLProgramBuilder.cpp View 3 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 9 (4 generated)
mtklein
Created Revert of GrFP can express distance vector field req., program builder declares variable for ...
4 years, 4 months ago (2016-07-30 19:41:19 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/2201613002/1
4 years, 4 months ago (2016-07-30 19:41:22 UTC) #3
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot on master.client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Release-Shared-Trybot/builds/10166) Build-Ubuntu-Clang-x86_64-Debug-Trybot on master.client.skia.compile (JOB_FAILED, ...
4 years, 4 months ago (2016-07-30 19:44:35 UTC) #5
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/2201613002/1
4 years, 4 months ago (2016-07-30 20:34:44 UTC) #7
commit-bot: I haz the power
4 years, 4 months ago (2016-07-30 21:21:13 UTC) #9
Message was sent while issue was closed.
Committed patchset #1 (id:1) as
https://skia.googlesource.com/skia/+/02aed95f9c7c6745c02e9aa8604d27d7a3ae93db

Powered by Google App Engine
This is Rietveld 408576698