Nicolas Capens
d767f41e37
Remove intrinsic parameter names.
...
TRAC #23394
Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Nicolas Capens
2013-07-19 16:26:52 -04:00
Nicolas Capens
58aa4e4080
Eliminate isVariableBuiltIn.
...
TRAC #21840
Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Nicolas Capens
2013-07-19 16:26:42 -04:00
Nicolas Capens
d4ceab122e
Detect redefinition of functions and variables.
...
TRAC #21840
Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Nicolas Capens
2013-07-19 16:26:33 -04:00
Shannon Woods
a240a2f935
Initialize the symbol table without invoking the parser.
...
TRAC #23368
Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Nicolas Capens
2013-06-26 19:00:10 -04:00
Shannon Woods
e8802364f8
Add 64bit safety patch step to generate_parser.sh scripts.
...
TRAC #23274
Authored-by: Shannon Woods
Signed-off-by: Jamie Madill
Signed-off-by: Nicolas Capens
2013-06-17 11:35:29 -04:00
Shannon Woods
0dc4670c73
Adds patch files for 64 bit safety fixes
...
TRAC #23274
Authored-by: Shannon Woods
Signed-off-by: Jamie Madill
Signed-off-by: Nicolas Capens
2013-06-17 11:35:15 -04:00
Shannon Woods
7335d55df1
Makes generate_parser.sh executable
...
TRAC #23274
Authored-by: Shannon Woods
Signed-off-by: Jamie Madill
Signed-off-by: Nicolas Capens
2013-06-17 11:34:59 -04:00
[email protected]
c0ca7b4e07
Use new symbol table initization for vertex shader.
...
BUG=
[email protected]
Review URL: https://codereview.appspot.com/10247043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2426 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-06-13 19:36:35 +00:00
[email protected]
18f50f7849
Less memory intensive initializing of builtins.
...
[email protected]
Review URL: https://codereview.appspot.com/9436044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2425 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-06-07 00:25:21 +00:00
[email protected]
b07ec5bf27
Fixed line endings to Unix style.
...
[email protected]
Review URL: https://codereview.appspot.com/10088043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2424 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-06-06 16:35:32 +00:00
[email protected]
71550929b8
Simplified TType class by carving out TStructure and TField.
...
[email protected]
Review URL: https://codereview.appspot.com/9866043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2423 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-06-06 16:24:46 +00:00
[email protected]
41fc482def
Regenerated glslang_tab.cpp to fix compile errors
...
The version committed in Issue 9827044 was generated in a bad environment and doesn't compile againts top-of-tree. This version does.
BUG=429
[email protected]
Review URL: https://codereview.appspot.com/9738044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2249 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-28 23:33:02 +00:00
[email protected]
7f694d92f2
Added support for EXT_frag_depth
...
This change also required that support be added for associating built-in
variables with an extension, similar to how functions could be associated with
extensions previously.
[email protected]
Review URL: https://codereview.appspot.com/9827044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2248 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-28 22:15:20 +00:00
[email protected]
4b721cda3e
Removed checks for zero-length arrays because you can never define such arrays.
...
Also removed support for max-array-size. You can only define a fixed-size array.
TEST=WebGL conformance tests
Review URL: https://codereview.appspot.com/9697044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2247 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-24 18:57:05 +00:00
[email protected]
91627bc713
Removed code for unsupported pack-unpack language.
...
Review URL: https://codereview.appspot.com/9685045
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2246 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-24 18:49:51 +00:00
[email protected]
19aa926597
Fix linker issue on Windows
...
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2245 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-21 05:06:45 +00:00
[email protected]
c25e84d09f
Fix compiler warning on Windows
...
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2244 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-20 21:07:36 +00:00
[email protected]
ada17c229e
Add expression complexity and call stack depth limits.
...
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2242 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-20 18:07:04 +00:00
[email protected]
ac42933243
Used size_t for object size instead of signed int.
...
BUG=crbug 179653
[email protected] , [email protected]
Review URL: https://codereview.appspot.com/8834048
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2211 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-15 16:46:34 +00:00
[email protected]
aebb555b06
Clamped negative index access.
...
Fixed error that allowed negative index for accessing
vector, matrix, and array. Now we report compile error
and clamp the index to 0.
Re-arranged code around it to handle negative index
at the one location.
BUG=crbug.com/239411
TEST=bug test case
[email protected] , [email protected]
Review URL: https://codereview.appspot.com/9193045
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2207 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-14 17:17:55 +00:00
[email protected]
1397dd3554
Refactor location tracking.
...
[email protected]
Review URL: https://codereview.appspot.com/9078046
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2202 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-09 17:54:29 +00:00
[email protected]
ebc93e083f
Remove dead code left over from the old preprocessor.
...
Review URL: https://codereview.appspot.com/9309044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2200 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-08 21:05:12 +00:00
[email protected]
92ba7794a7
Refactor class to represent structure.
...
We had a TTypeLine to represent a structure field,
which simply encapsulated a TType and line number.
The line number was only used during parsing for error reporting.
There is no need to store a line number because it is already
available in the parser token.
TEST=WebGL conformance tests
[email protected]
Review URL: https://codereview.appspot.com/9223045
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2198 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-07 20:23:14 +00:00
[email protected]
bdb34e881c
Delete dead code for cloning various types.
...
[email protected]
Review URL: https://codereview.appspot.com/9242043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2197 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-06 22:22:33 +00:00
[email protected]
fd35e3dd7f
We don't need to keep the param variable around for function prototypes.
...
Saves 20% memory for global symbol initialization
[email protected]
Review URL: https://codereview.appspot.com/9152043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2196 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-05-06 19:14:11 +00:00
[email protected]
e0b8416a48
A special state to track field selection is not necessary.
...
Identifier is sufficient to parse struct fieldname.
TEST=WebGL conformance tests.
Review URL: https://codereview.appspot.com/8709048
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2195 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-26 23:13:58 +00:00
[email protected]
9061319058
Lexer does not need to handle unknown-char case.
...
It is handled by the preprocessor. Added an assert.
TEST=WebGL conformance tests.
[email protected]
Review URL: https://codereview.appspot.com/8653052
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2194 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-26 18:54:35 +00:00
[email protected]
8e578842ec
Lexer does not need a state stack now that it does not handle comments.
...
TEST=WebGL conformance tests
[email protected]
Review URL: https://codereview.appspot.com/8983043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2193 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-26 18:45:00 +00:00
[email protected]
c22501d705
Revert "A special state to track field selection is not necessary."
...
This reverts commit 12e9eebd10 .
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2192 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-26 18:34:42 +00:00
[email protected]
12e9eebd10
A special state to track field selection is not necessary.
...
Identifier is sufficient to parse struct fieldname.
Note that we do not need stacked lexer state anymore.
TEST=WebGL conformance tests.
Review URL: https://codereview.appspot.com/8565045
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2191 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-26 17:44:36 +00:00
[email protected]
02064be77a
Robust distinction between IDENTIFIER and TYPE_NAME tokens.
...
To distinguish the tokens we used to track the lexer context,
which is fragile. This patch implements a better way -
combine the two tokens into a common parser rule and let
the parser context decide if the declaration is valid,
which it already does by checking the naming conflicts.
TEST=WebGL conformance tests.
Review URL: https://codereview.appspot.com/8797044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2190 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-26 15:24:32 +00:00
[email protected]
368610cce7
Delete dead-code for handling comments and invalid octal integers. These are already handled by the preprocessor.
...
TEST=WebGL conformance tests.
Review URL: https://codereview.appspot.com/8632053
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2189 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-24 19:43:41 +00:00
[email protected]
dad18f3071
Deleted unnecessary TParseContext::AfterEOF.
...
[email protected]
Review URL: https://codereview.appspot.com/8927045
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2188 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-24 00:10:04 +00:00
[email protected]
8b7feb77b7
Reformat tokenizer. No functional changes.
...
TEST=WebGL conformance tests.
[email protected]
Review URL: https://codereview.appspot.com/8925044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2187 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-23 23:50:02 +00:00
[email protected]
e86dc8364e
Validate allocation size in PoolAllocator.
...
Note that I am planning to get rid of PoolAllocator entirely.
BUG=crbug 179654
Review URL: https://codereview.appspot.com/8662046
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2186 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-04-22 18:32:34 +00:00
shannon.woods%[email protected]
6416ba45e1
Safely promote uninitialized constants.
...
TRAC #22676
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1998 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-03-19 05:16:20 +00:00
shannon.woods%[email protected]
88de0c7448
Don't assume unary operations on constants will be folded into a constant.
...
TRAC #22676
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1997 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-03-19 05:16:14 +00:00
shannon.woods%[email protected]
c00c04fb75
Ignore constants that have not been initialized.
...
TRAC #22676
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1996 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-03-19 05:16:08 +00:00
shannon.woods%[email protected]
14d4dc5ca4
Provide safer and more convenient constant union accessors.
...
TRAC #22676
Signed-off-by: Geoff Lang
Signed-off-by: Shannon Woods
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1995 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-03-19 05:15:59 +00:00
[email protected]
42988edd3d
Added preprocessor support for GL_FRAGMENT_PRECISION_HIGH.
...
I will send the tests in a separate patch because I need to refactor the way compiler_tests are setup.
Review URL: https://codereview.appspot.com/7402051
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1984 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-03-04 20:03:09 +00:00
[email protected]
0be14ce2a1
Ensure nested ternary operator unfolding uses a new scope to avoid redefinition of the same temporary variable.
...
TRAC #22629
Signed-off-by: Jamie Madill
Signed-off-by: Shannon Woods
Author: Nicolas Capens
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1835 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-02-28 21:24:32 +00:00
[email protected]
8390870a8b
Build fix for qt-wk2
...
Review URL: https://codereview.appspot.com/7381049
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1833 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-02-22 00:44:54 +00:00
[email protected]
43c9feb1aa
Fix ANGLE patching/building issues.
...
1) Remove an empty file: this causes patch apply failures when updating WebKit side ANGLE.
2) Fix a 64-to-32 conversion issue.
3) Append a change to Tokenizer.l that's left out in a previous CL. (cpp is already updated).
Review URL: https://codereview.appspot.com/7378051
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1832 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-02-22 00:04:39 +00:00
[email protected]
99a7f61011
This pulls in mvujovic's build fix in WebKit ANGLE.
...
Original patch: http://trac.webkit.org/changeset/139665
Review URL: https://codereview.appspot.com/7392044
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1831 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-02-21 22:09:50 +00:00
[email protected]
ca23ae5224
Add support for extension EXT_draw_buffers.
...
Review URL: https://codereview.appspot.com/7308107
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1830 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-02-20 17:29:15 +00:00
[email protected]
216e289fa8
Fix signed / unsigned warning in ParseHelper.cpp.
...
Review URL: https://codereview.appspot.com/7330046
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1828 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-02-15 00:07:40 +00:00
[email protected]
d91136adb1
Fixed one remaining 64-bit truncation issue missed in the last CL.
...
BUG=396
Review URL: https://codereview.appspot.com/7323055
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1827 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-02-12 21:23:10 +00:00
[email protected]
8e77853d4d
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
Review URL: https://codereview.appspot.com/7300058
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1826 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-02-12 03:08:38 +00:00
[email protected]
70a762986e
Check that the incoming type to a default precision qualifier statement is valid.
...
Fixes new WebGL conformance tests
shader-with-illegal-default-precision.frag.html and
shader-with-illegal-default-precision.vert.html per
http://www.khronos.org/bugzilla/show_bug.cgi?id=781 . Also ran WebGL
1.0.1 conformance tests; no regressions.
BUG=none
Review URL: https://codereview.appspot.com/7302043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1824 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-02-06 01:50:44 +00:00
[email protected]
899c7e9ef2
Do not hash mapping field names of a reserved struct.
...
With this fixed, Chrome behaves the same on WebGL conformance tests 1.0.2 with/without --enable-shader-name-hashing
BUG=
TEST=WebGL conformance tests
Review URL: https://codereview.appspot.com/7229043
git-svn-id: https://angleproject.googlecode.com/svn/trunk@1809 736b8ea6-26fd-11df-bfd4-992fa37f6226
2013-01-31 18:50:10 +00:00