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

Issue 4550129: Implement ES2 backend for Angle translator. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 10 months ago by Zhenyao Mo
Modified:
12 years, 10 months ago
CC:
angleproject-review_googlegroups.com
Base URL:
http://angleproject.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Implement ES2 backend for Angle translator. With this CL, we have the option to select a code output backend: GLSL, GLSL ES, or HLSL. Note that we always emit the highest supported float precision for fragment shader due to anglebug 168. Although this is a temporary solution, it's not against GLSL ES spec, because it's ok for implementation to upgrade precision. Tested with WebGL conformance test suite, GLES2 conformance test suite (only failed 2/1198), and a few webgl demos, including worlds of webgl, aquarium, etc. anglebug=81 test=translator emitting correct GLSL ES code when ES2 backend is selected. Committed: http://code.google.com/p/angleproject/source/detail?r=687

Patch Set 1 : '' #

Total comments: 6

Patch Set 2 : '' #

Total comments: 5

Patch Set 3 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+981 lines, -752 lines) Patch
M CONTRIBUTORS View 1 chunk +1 line, -0 lines 0 comments Download
M include/GLSLANG/ShaderLang.h View 3 chunks +12 lines, -2 lines 0 comments Download
M samples/translator/translator.cpp View 1 2 4 chunks +26 lines, -8 lines 0 comments Download
M src/build_angle.gyp View 1 chunk +6 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/CodeGenGLSL.cpp View 1 chunk +11 lines, -2 lines 0 comments Download
M src/compiler/CodeGenHLSL.cpp View 1 chunk +8 lines, -2 lines 0 comments Download
M src/compiler/Compiler.cpp View 1 chunk +5 lines, -0 lines 0 comments Download
M src/compiler/ExtensionBehavior.h View 1 chunk +16 lines, -0 lines 0 comments Download
A src/compiler/OutputESSL.h View 1 1 chunk +21 lines, -0 lines 0 comments Download
A src/compiler/OutputESSL.cpp View 1 chunk +22 lines, -0 lines 0 comments Download
M src/compiler/OutputGLSL.h View 2 chunks +4 lines, -35 lines 0 comments Download
M src/compiler/OutputGLSL.cpp View 1 chunk +2 lines, -695 lines 0 comments Download
A src/compiler/OutputGLSLBase.h View 1 chunk +53 lines, -0 lines 0 comments Download
A src/compiler/OutputGLSLBase.cpp View 1 1 chunk +713 lines, -0 lines 0 comments Download
M src/compiler/ParseHelper.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/ShHandle.h View 2 chunks +4 lines, -1 line 0 comments Download
M src/compiler/ShaderLang.cpp View 1 chunk +2 lines, -1 line 0 comments Download
A src/compiler/TranslatorESSL.h View 1 1 chunk +23 lines, -0 lines 0 comments Download
A src/compiler/TranslatorESSL.cpp View 1 1 chunk +46 lines, -0 lines 0 comments Download
M src/libGLESv2/Shader.cpp View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 12
Zhenyao Mo
Please review.
12 years, 10 months ago (2011-06-09 20:46:07 UTC) #1
kbr1
This looks excellent. This refactoring is very important, as it finally allows all shaders to ...
12 years, 10 months ago (2011-06-10 01:03:33 UTC) #2
kbr1
http://codereview.appspot.com/4550129/diff/1001/src/compiler/OutputGLSLBase.cpp File src/compiler/OutputGLSLBase.cpp (right): http://codereview.appspot.com/4550129/diff/1001/src/compiler/OutputGLSLBase.cpp#newcode115 src/compiler/OutputGLSLBase.cpp:115: out << getTypeName(*fieldType) << " " << fieldType->getFieldName(); Some ...
12 years, 10 months ago (2011-06-10 01:07:23 UTC) #3
Zhenyao Mo
Revised. Please have another quick look. Also, Alok, Nicolas, do you have any further comments ...
12 years, 10 months ago (2011-06-10 01:49:13 UTC) #4
kbr1
LGTM http://codereview.appspot.com/4550129/diff/1001/src/compiler/OutputGLSLBase.cpp File src/compiler/OutputGLSLBase.cpp (right): http://codereview.appspot.com/4550129/diff/1001/src/compiler/OutputGLSLBase.cpp#newcode115 src/compiler/OutputGLSLBase.cpp:115: out << getTypeName(*fieldType) << " " << fieldType->getFieldName(); ...
12 years, 10 months ago (2011-06-10 02:03:29 UTC) #5
Zhenyao Mo
On 2011/06/10 02:03:29, kbr1 wrote: > LGTM > > http://codereview.appspot.com/4550129/diff/1001/src/compiler/OutputGLSLBase.cpp > File src/compiler/OutputGLSLBase.cpp (right): > ...
12 years, 10 months ago (2011-06-10 04:26:52 UTC) #6
Alok Priyadarshi
http://codereview.appspot.com/4550129/diff/1002/samples/translator/translator.cpp File samples/translator/translator.cpp (right): http://codereview.appspot.com/4550129/diff/1002/samples/translator/translator.cpp#newcode91 samples/translator/translator.cpp:91: vertexCompiler = ShConstructCompiler( could you make this a command-line ...
12 years, 10 months ago (2011-06-10 05:53:25 UTC) #7
kbr1
http://codereview.appspot.com/4550129/diff/1002/src/compiler/OutputGLSLBase.h File src/compiler/OutputGLSLBase.h (right): http://codereview.appspot.com/4550129/diff/1002/src/compiler/OutputGLSLBase.h#newcode16 src/compiler/OutputGLSLBase.h:16: class TOutputGLSLBase : public TIntermTraverser On 2011/06/10 05:53:26, Alok ...
12 years, 10 months ago (2011-06-10 13:42:05 UTC) #8
Alok Priyadarshi
On 2011/06/10 13:42:05, kbr1 wrote: > http://codereview.appspot.com/4550129/diff/1002/src/compiler/OutputGLSLBase.h > File src/compiler/OutputGLSLBase.h (right): > > http://codereview.appspot.com/4550129/diff/1002/src/compiler/OutputGLSLBase.h#newcode16 > ...
12 years, 10 months ago (2011-06-10 15:42:30 UTC) #9
zmo
On 2011/06/10 15:42:30, Alok Priyadarshi wrote: > On 2011/06/10 13:42:05, kbr1 wrote: > > http://codereview.appspot.com/4550129/diff/1002/src/compiler/OutputGLSLBase.h ...
12 years, 10 months ago (2011-06-10 16:43:22 UTC) #10
Zhenyao Mo
Added commandline option for samples/translator output backend selection. Alok, please have a quick look again. ...
12 years, 10 months ago (2011-06-10 18:05:39 UTC) #11
Alok Priyadarshi
12 years, 10 months ago (2011-06-10 18:12:16 UTC) #12
On 2011/06/10 18:05:39, Zhenyao Mo wrote:
> Added commandline option for samples/translator output backend selection. 
Alok,
> please have a quick look again.
> 
>
http://codereview.appspot.com/4550129/diff/1002/samples/translator/translator...
> File samples/translator/translator.cpp (right):
> 
>
http://codereview.appspot.com/4550129/diff/1002/samples/translator/translator...
> samples/translator/translator.cpp:91: vertexCompiler = ShConstructCompiler(
> On 2011/06/10 05:53:26, Alok Priyadarshi wrote:
> > could you make this a command-line flag?
> 
> Done.

lgtm
Sign in to reply to this message.

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