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

Issue 7300058: Fixed 64-bit integer truncation issues in shader translator. (Closed)

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

Description

Fixed 64-bit integer truncation issues in shader translator. This is an incompatible API change, but one which is necessary in order to improve correctness of the code. The API version in ShaderLang.h is updated and, unfortunately, the define renamed to something less ambiguous due to conflicts on some Android buildbots. Temporary patches in Chromium and WebKit will be landed separately to support this upgrade. BUG=403,404,405,406,407,408,409 Committed: https://code.google.com/p/angleproject/source/detail?r=1826

Patch Set 1 #

Total comments: 7

Patch Set 2 : Fixed problems on Windows and Android #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -87 lines) Patch
M include/GLSLANG/ShaderLang.h View 1 7 chunks +8 lines, -7 lines 0 comments Download
M src/common/version.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/Compiler.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/MapLongVariableNames.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/MapLongVariableNames.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M src/compiler/ParseHelper.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/ParseHelper.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M src/compiler/ShHandle.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/ShaderLang.cpp View 9 chunks +15 lines, -15 lines 0 comments Download
M src/compiler/SymbolTable.h View 1 chunk +2 lines, -2 lines 0 comments Download
M src/compiler/ValidateLimitations.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/glslang.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/glslang.l View 4 chunks +8 lines, -8 lines 0 comments Download
M src/compiler/glslang.y View 1 4 chunks +4 lines, -4 lines 0 comments Download
M src/compiler/glslang_lex.cpp View 5 chunks +9 lines, -9 lines 0 comments Download
M src/compiler/glslang_tab.cpp View 1 3 chunks +3 lines, -3 lines 0 comments Download
M src/compiler/preprocessor/Input.h View 3 chunks +10 lines, -9 lines 0 comments Download
M src/compiler/preprocessor/Input.cpp View 1 chunk +5 lines, -6 lines 0 comments Download
M src/compiler/preprocessor/Preprocessor.h View 2 chunks +3 lines, -1 line 0 comments Download
M src/compiler/preprocessor/Preprocessor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/preprocessor/Tokenizer.h View 1 chunk +1 line, -1 line 0 comments Download
M src/compiler/preprocessor/Tokenizer.cpp View 2 chunks +4 lines, -4 lines 0 comments Download
M src/compiler/preprocessor/Tokenizer.l View 1 chunk +3 lines, -2 lines 0 comments Download
M src/libGLESv2/Shader.cpp View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 8
kbr1
Please review this change to fix 64-bit truncation issues throughout the shader translator. Separate Chromium ...
11 years, 10 months ago (2013-02-07 03:27:41 UTC) #1
kbr1
11 years, 10 months ago (2013-02-07 03:28:03 UTC) #2
kbr1
11 years, 10 months ago (2013-02-07 03:43:45 UTC) #3
jschuh
lgtm on the security end with some minor non-security nits. https://codereview.appspot.com/7300058/diff/1/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/7300058/diff/1/include/GLSLANG/ShaderLang.h#newcode283 ...
11 years, 10 months ago (2013-02-07 14:16:54 UTC) #4
nicolas
Looks fine otherwise. https://codereview.appspot.com/7300058/diff/1/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/7300058/diff/1/include/GLSLANG/ShaderLang.h#newcode283 include/GLSLANG/ShaderLang.h:283: size_t numStrings, Since this is the ...
11 years, 10 months ago (2013-02-07 16:21:58 UTC) #5
Alok Priyadarshi
lgtm
11 years, 10 months ago (2013-02-07 21:34:10 UTC) #6
kbr1
https://codereview.appspot.com/7300058/diff/1/include/GLSLANG/ShaderLang.h File include/GLSLANG/ShaderLang.h (right): https://codereview.appspot.com/7300058/diff/1/include/GLSLANG/ShaderLang.h#newcode283 include/GLSLANG/ShaderLang.h:283: size_t numStrings, On 2013/02/07 14:16:54, jschuh wrote: > Any ...
11 years, 10 months ago (2013-02-12 00:57:23 UTC) #7
nicolas
11 years, 10 months ago (2013-02-12 01:42:07 UTC) #8
On 2013/02/12 00:57:23, kbr1 wrote:
> It is not very useful for scalar arguments such as integers. Also, the OpenGL
> API glCompileShader, which this function mirrors, doesn't use it.
> 
> 
> I agree that a 64-bit value is overkill, but glShaderSource takes GLsizei for
> this argument, and the point of this patch is to eliminate all integer
> truncation issues in this API.

Ah, yes, makes sense to mirror the API functions. LGTM.
Sign in to reply to this message.

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