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

Issue 13509043: Add an option in ANGLE shader translator to initialize gl_Position to vec4(0.0, 0.0, 0.0, 1.0). (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 8 months ago by Zhenyao Mo
Modified:
10 years, 7 months ago
Reviewers:
kbr1, Alok Priyadarshi
CC:
angleproject-review_googlegroups.com, Shannon Woods
Base URL:
https://code.google.com/p/angleproject/@master
Visibility:
Public.

Description

Add an option in ANGLE shader translator to initialize gl_Position to vec4(0.0, 0.0, 0.0, 1.0). This is to work around driver bugs where shader compile or program link would fail incorrectly if gl_Position is not set in vertex shader. At the moment at least Linux NVIDIA driver has this bug. ANGLEBUG=472 R=alokp@chromium.org, kbr@chromium.org Committed: https://code.google.com/p/angleproject/source/detail?r=fc75e21

Patch Set 1 #

Patch Set 2 : minor #

Total comments: 6

Patch Set 3 : change #

Total comments: 1

Patch Set 4 : per kbr's suggestion #

Patch Set 5 : modifying AST approach #

Total comments: 2

Patch Set 6 : Fix a bug #

Total comments: 9

Patch Set 7 : revision per alokp review #

Patch Set 8 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+109 lines, -1 line) Patch
M include/GLSLANG/ShaderLang.h View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M src/build_angle.gypi View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M src/common/version.h View 1 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/Compiler.cpp View 1 2 3 4 2 chunks +6 lines, -0 lines 0 comments Download
A src/compiler/InitializeGLPosition.h View 1 2 3 4 5 6 1 chunk +33 lines, -0 lines 0 comments Download
A src/compiler/InitializeGLPosition.cpp View 1 2 3 4 5 6 1 chunk +61 lines, -0 lines 0 comments Download

Messages

Total messages: 19
Zhenyao Mo
Please review. Will setup a driver-bug-workaround on the chromium side for this, and turn it ...
10 years, 8 months ago (2013-09-03 23:30:21 UTC) #1
kbr1
The overall idea is good but I'd like to see a cleanup made. https://codereview.appspot.com/13509043/diff/6001/include/GLSLANG/ShaderLang.h File ...
10 years, 8 months ago (2013-09-04 00:23:25 UTC) #2
Zhenyao Mo
Please take another look. https://codereview.appspot.com/13509043/diff/6001/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/13509043/diff/6001/include/GLSLANG/ShaderLang.h#newcode188 include/GLSLANG/ShaderLang.h:188: // vertex shader, and has ...
10 years, 8 months ago (2013-09-04 01:29:44 UTC) #3
kbr1
Thanks, this looks much nicer. LGTM https://codereview.appspot.com/13509043/diff/21001/src/compiler/Compiler.cpp File src/compiler/Compiler.cpp (right): https://codereview.appspot.com/13509043/diff/21001/src/compiler/Compiler.cpp#newcode149 src/compiler/Compiler.cpp:149: setInitGLPosition((compileOptions & SH_INIT_GL_POSITION) ...
10 years, 8 months ago (2013-09-04 17:07:20 UTC) #4
Zhenyao Mo
On 2013/09/04 17:07:20, kbr1 wrote: > Thanks, this looks much nicer. LGTM > > https://codereview.appspot.com/13509043/diff/21001/src/compiler/Compiler.cpp ...
10 years, 8 months ago (2013-09-04 17:09:09 UTC) #5
kbr1
On 2013/09/04 17:09:09, Zhenyao Mo wrote: > On 2013/09/04 17:07:20, kbr1 wrote: > > Thanks, ...
10 years, 8 months ago (2013-09-04 17:50:39 UTC) #6
Zhenyao Mo
On 2013/09/04 17:50:39, kbr1 wrote: > On 2013/09/04 17:09:09, Zhenyao Mo wrote: > > On ...
10 years, 8 months ago (2013-09-04 17:51:36 UTC) #7
Zhenyao Mo
Alok, please take a look!
10 years, 7 months ago (2013-09-05 18:33:36 UTC) #8
Alok Priyadarshi
On 2013/09/05 18:33:36, Zhenyao Mo wrote: > Alok, please take a look! Couple of questions: ...
10 years, 7 months ago (2013-09-05 18:42:40 UTC) #9
Zhenyao Mo
On 2013/09/05 18:42:40, Alok Priyadarshi wrote: > On 2013/09/05 18:33:36, Zhenyao Mo wrote: > > ...
10 years, 7 months ago (2013-09-05 19:14:59 UTC) #10
Alok Priyadarshi
On 2013/09/05 19:14:59, Zhenyao Mo wrote: > On 2013/09/05 18:42:40, Alok Priyadarshi wrote: > > ...
10 years, 7 months ago (2013-09-05 20:00:57 UTC) #11
Zhenyao Mo
On 2013/09/05 20:00:57, Alok Priyadarshi wrote: > On 2013/09/05 19:14:59, Zhenyao Mo wrote: > > ...
10 years, 7 months ago (2013-09-05 20:44:00 UTC) #12
Zhenyao Mo
kbr, alokp, please take another look at the new implementation. Tested with webgl conformance tests ...
10 years, 7 months ago (2013-09-06 00:08:37 UTC) #13
kbr1
LGTM. I'm not an expert on the IR so defer to Alok's review. https://codereview.appspot.com/13509043/diff/35001/src/compiler/InitializeGLPosition.cpp File ...
10 years, 7 months ago (2013-09-06 01:02:02 UTC) #14
Zhenyao Mo
https://codereview.appspot.com/13509043/diff/35001/src/compiler/InitializeGLPosition.cpp File src/compiler/InitializeGLPosition.cpp (right): https://codereview.appspot.com/13509043/diff/35001/src/compiler/InitializeGLPosition.cpp#newcode30 src/compiler/InitializeGLPosition.cpp:30: } On 2013/09/06 01:02:02, kbr1 wrote: > Are both ...
10 years, 7 months ago (2013-09-06 01:34:00 UTC) #15
kbr1
LGTM again.
10 years, 7 months ago (2013-09-06 17:10:29 UTC) #16
Alok Priyadarshi
minor comments. lgtm. https://codereview.appspot.com/13509043/diff/41001/src/compiler/InitializeGLPosition.cpp File src/compiler/InitializeGLPosition.cpp (right): https://codereview.appspot.com/13509043/diff/41001/src/compiler/InitializeGLPosition.cpp#newcode15 src/compiler/InitializeGLPosition.cpp:15: case EOpSequence: break; nit: please follow ...
10 years, 7 months ago (2013-09-09 17:19:59 UTC) #17
Zhenyao Mo
https://codereview.appspot.com/13509043/diff/41001/src/compiler/InitializeGLPosition.cpp File src/compiler/InitializeGLPosition.cpp (right): https://codereview.appspot.com/13509043/diff/41001/src/compiler/InitializeGLPosition.cpp#newcode16 src/compiler/InitializeGLPosition.cpp:16: case EOpFunction: { On 2013/09/09 17:20:00, Alok Priyadarshi wrote: ...
10 years, 7 months ago (2013-09-09 17:57:36 UTC) #18
Zhenyao Mo
10 years, 7 months ago (2013-09-09 17:59:33 UTC) #19
Message was sent while issue was closed.
Committed patchset #8 manually as rfc75e21 (presubmit successful).
Sign in to reply to this message.

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