playground/angleproject_test.git
20 months agoFixed version number master
alokp@chromium.org [Mon, 13 Aug 2012 17:37:36 +0000 (17:37 +0000)]
Fixed version number

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1247 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoShader translator converted single-element vector swizzle to direct index access...
alokp@chromium.org [Mon, 13 Aug 2012 17:36:25 +0000 (17:36 +0000)]
Shader translator converted single-element vector swizzle to direct index access. It is not wrong, but unnecessary and moreover it triggers a MESA optimizer bug.
Review URL: https://codereview.appspot.com/6460074

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1246 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoRound swap chain surfaces to 64 pixels in width.
apatrick@chromium.org [Fri, 10 Aug 2012 18:08:47 +0000 (18:08 +0000)]
Round swap chain surfaces to 64 pixels in width.
Review URL: https://codereview.appspot.com/6449123

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1245 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoAdd angle_code var to common.gypi and build_angle.gyp. Add GCC and clang warning...
maxvujovic@gmail.com [Wed, 25 Jul 2012 21:01:45 +0000 (21:01 +0000)]
Add angle_code var to common.gypi and build_angle.gyp. Add GCC and clang warning flags from WebKit to ANGLE Mac and Linux builds.

The angle_code var differentiates between core ANGLE code vs. test code, sample code, and third party code.

Review URL: https://codereview.appspot.com/6427049/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1244 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoRevert r1230.
apatrick@chromium.org [Tue, 24 Jul 2012 19:46:53 +0000 (19:46 +0000)]
Revert r1230.

See https://codereview.appspot.com/6427049/.
Review URL: https://codereview.appspot.com/6422063

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1243 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoMake ProgramBinary a refcount object and use Binding pointers to maintain it's lifeti...
daniel@transgaming.com [Tue, 24 Jul 2012 18:40:38 +0000 (18:40 +0000)]
Make ProgramBinary a refcount object and use Binding pointers to maintain it's lifetime on context and program.

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
This fixes the underlying bug since it allows the context to keep the program binary alive, after a relink has occurred.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1242 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoRestore the explicit isLinked() method for Programs and fix link().
daniel@transgaming.com [Tue, 24 Jul 2012 18:38:59 +0000 (18:38 +0000)]
Restore the explicit isLinked() method for Programs and fix link().

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
If link fails we still need to keep the failed binary around for information
such as number of active attributes, varyings, etc.
Thus we can no longer use the presence of a binary to tell us if we've successfully
linked a program object.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1241 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoInstall new program binary when current program is successfully relinked or reloaded
daniel@transgaming.com [Tue, 24 Jul 2012 18:37:59 +0000 (18:37 +0000)]
Install new program binary when current program is successfully relinked or reloaded

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1240 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoMake Program link() and setProgramBinary() return the status of the operation
daniel@transgaming.com [Tue, 24 Jul 2012 18:37:02 +0000 (18:37 +0000)]
Make Program link() and setProgramBinary() return the status of the operation

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1239 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoredirect the LinkProgram and ProgramBinary calls through the context.
daniel@transgaming.com [Tue, 24 Jul 2012 18:36:10 +0000 (18:36 +0000)]
redirect the LinkProgram and ProgramBinary calls through the context.

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1238 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoExplicitly track the current program binary instead of just caching it.
daniel@transgaming.com [Tue, 24 Jul 2012 18:35:17 +0000 (18:35 +0000)]
Explicitly track the current program binary instead of just caching it.

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1237 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoDon't erase the cached program binary on deletion.
daniel@transgaming.com [Tue, 24 Jul 2012 18:34:39 +0000 (18:34 +0000)]
Don't erase the cached program binary on deletion.

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
This is unnecessary since the current program can never be deleted, only flagged for deletion.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1236 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoCache the current program binary instead of the current program.
daniel@transgaming.com [Tue, 24 Jul 2012 18:33:59 +0000 (18:33 +0000)]
Cache the current program binary instead of the current program.

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
Everywhere we used the currentProgram it was immediately used to get the program's binary.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1235 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoRemove Program serial tracking. It is no longer useful (or used).
daniel@transgaming.com [Tue, 24 Jul 2012 18:32:29 +0000 (18:32 +0000)]
Remove Program serial tracking. It is no longer useful (or used).

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1234 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoUse the ProgramBinary's serial to track changed D3D9 shaders instead of the Program's
daniel@transgaming.com [Tue, 24 Jul 2012 18:31:31 +0000 (18:31 +0000)]
Use the ProgramBinary's serial to track changed D3D9 shaders instead of the Program's

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
This is necessary since the shaders can change every time a new ProgramBinary is created
(eg when re-linking or loading a new binary).

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1233 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoAdd serial tracking to ProgramBinary
daniel@transgaming.com [Tue, 24 Jul 2012 18:30:43 +0000 (18:30 +0000)]
Add serial tracking to ProgramBinary

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1232 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoPass the programBinary directly to applyDeclaration
daniel@transgaming.com [Tue, 24 Jul 2012 18:29:38 +0000 (18:29 +0000)]
Pass the programBinary directly to applyDeclaration

Trac #21270
Bug=351
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1231 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoAdd GCC and clang warning flags from WebKit to ANGLE Mac and Linux builds
maxvujovic@gmail.com [Tue, 24 Jul 2012 18:13:49 +0000 (18:13 +0000)]
Add GCC and clang warning flags from WebKit to ANGLE Mac and Linux builds

Review URL: https://codereview.appspot.com/6427049/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1230 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoEmbed Blit shader byte code in binary.
apatrick@chromium.org [Thu, 19 Jul 2012 19:11:24 +0000 (19:11 +0000)]
Embed Blit shader byte code in binary.

Ran a WebGL conformance test that exercises the blitter - copy-tex-image-2d-formats.
Review URL: https://codereview.appspot.com/6403043

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1229 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoFix always true condition in assert in MacroExpander.cpp.
maxvujovic@gmail.com [Wed, 18 Jul 2012 17:29:52 +0000 (17:29 +0000)]
Fix always true condition in assert in MacroExpander.cpp.

Issue: 349
Review URL: https://codereview.appspot.com/6420046/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1228 736b8ea6-26fd-11df-bfd4-992fa37f6226

20 months agoDo not call MacroExpander::popMacro() from MacroExpander::~MacroExpander().
alokp@chromium.org [Wed, 18 Jul 2012 15:49:56 +0000 (15:49 +0000)]
Do not call MacroExpander::popMacro() from MacroExpander::~MacroExpander().
MacroExpander::popMacro() assumes that the macro being popped has been fully parsed.
This may not be true for MacroExpander destructor which may get called anytime the compiler decides to abort the compilation process.
This patch just deletes the macro-contexts pushed in the stack without validating the parse state of current macro.

BUG=348
Review URL: https://codereview.appspot.com/6415043

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1227 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoBump version.h
apatrick@chromium.org [Fri, 13 Jul 2012 22:39:17 +0000 (22:39 +0000)]
Bump version.h

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1226 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoCache D3D vertex and pixel shader objects so they can be reused and shared by multipl...
apatrick@chromium.org [Fri, 13 Jul 2012 22:36:58 +0000 (22:36 +0000)]
Cache D3D vertex and pixel shader objects so they can be reused and shared by multiple contexts.

WebGL conformance tests did not regress. I verified they exercise the Blit code.
Review URL: https://codereview.appspot.com/6345105

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1225 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoMake the new preprocessor backwards compatible with Bison 2.3
maxvujovic@gmail.com [Fri, 13 Jul 2012 18:42:40 +0000 (18:42 +0000)]
Make the new preprocessor backwards compatible with Bison 2.3

Review URL: http://codereview.appspot.com/6356098/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1224 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoRecognize QNX as POSIX.
maxvujovic@gmail.com [Fri, 13 Jul 2012 17:32:57 +0000 (17:32 +0000)]
Recognize QNX as POSIX.

Review URL: https://codereview.appspot.com/6353097/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1223 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoScale up non-multiple-of-4 dxt textures
jbauman@chromium.org [Thu, 12 Jul 2012 23:28:41 +0000 (23:28 +0000)]
Scale up non-multiple-of-4 dxt textures

D3D doesn't support DXT textures that aren't a multiple of 4 in size, so multiply the sizes by 2 or 4 so they work. Then ensure sampler parameters are set up correctly so they don't sample the unuploaded miplevels.

BUG=https://code.google.com/p/angleproject/issues/detail?id=237
TEST=

Review URL: https://codereview.appspot.com/6287045

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1222 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoImplement Anisotropic Texture filtering support
daniel@transgaming.com [Thu, 12 Jul 2012 15:17:09 +0000 (15:17 +0000)]
Implement Anisotropic Texture filtering support

Bug=297
Authored-by: Conor Dickinson, Cloud Party, Inc.
Signed-off-by: Daniel Koch
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1219 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoRemove dos-style line-endings (EOL changes only)
daniel@transgaming.com [Thu, 12 Jul 2012 15:17:06 +0000 (15:17 +0000)]
Remove dos-style line-endings (EOL changes only)

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1218 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoUpdate version
apatrick@chromium.org [Thu, 12 Jul 2012 01:43:41 +0000 (01:43 +0000)]
Update version
Review URL: https://codereview.appspot.com/6352103

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1217 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoEnable OES_get_program_binary.
apatrick@chromium.org [Thu, 12 Jul 2012 01:42:34 +0000 (01:42 +0000)]
Enable OES_get_program_binary.
Review URL: https://codereview.appspot.com/6349053

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1216 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoMake ProgramBinaries binary rather than text + binary.
apatrick@chromium.org [Thu, 12 Jul 2012 01:40:11 +0000 (01:40 +0000)]
Make ProgramBinaries binary rather than text + binary.
Review URL: https://codereview.appspot.com/6351082

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1215 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoFix vertex texture fetch.
apatrick@chromium.org [Thu, 12 Jul 2012 01:33:10 +0000 (01:33 +0000)]
Fix vertex texture fetch.

The texture v coordinate was still being flipped.

Fixes http://code.google.com/p/chromium/issues/detail?id=136650.
Review URL: https://codereview.appspot.com/6345095

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1214 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoDon't set the Break flag on the last loop fragment.
daniel@transgaming.com [Wed, 11 Jul 2012 20:37:41 +0000 (20:37 +0000)]
Don't set the Break flag on the last loop fragment.

TRAC #21167
ISSUE=338
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1213 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoDon't check for Break on the first loop fragment.
daniel@transgaming.com [Wed, 11 Jul 2012 20:37:38 +0000 (20:37 +0000)]
Don't check for Break on the first loop fragment.

TRAC #21167
ISSUE=338
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1212 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoIndicate breaking out of an excessive loop using the loop index name.
daniel@transgaming.com [Wed, 11 Jul 2012 20:37:35 +0000 (20:37 +0000)]
Indicate breaking out of an excessive loop using the loop index name.

TRAC #21167
ISSUE=338
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1211 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoKeep track of the index name of excessive loops.
daniel@transgaming.com [Wed, 11 Jul 2012 20:37:31 +0000 (20:37 +0000)]
Keep track of the index name of excessive loops.

TRAC #21167
ISSUE=338
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1210 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoUse a single index for excessive loops.
daniel@transgaming.com [Wed, 11 Jul 2012 20:37:28 +0000 (20:37 +0000)]
Use a single index for excessive loops.

TRAC #21167
ISSUE=338
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1209 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoLimit HLSL loop scope to match that of GLSL, for excessive loops.
daniel@transgaming.com [Wed, 11 Jul 2012 20:37:25 +0000 (20:37 +0000)]
Limit HLSL loop scope to match that of GLSL, for excessive loops.

TRAC #21167
ISSUE=338
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1208 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoDisable debug logging on Release builds.
daniel@transgaming.com [Wed, 11 Jul 2012 20:37:21 +0000 (20:37 +0000)]
Disable debug logging on Release builds.

TRAC #21169
ISSUE=322
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1207 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoDisallow redefinition of built-in functions.
daniel@transgaming.com [Wed, 11 Jul 2012 20:37:16 +0000 (20:37 +0000)]
Disallow redefinition of built-in functions.

TRAC #21173
Issue=343
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1206 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoThis patch reverts r1203, but in slightly different way. It seems there is a problem...
alokp@chromium.org [Wed, 11 Jul 2012 20:31:02 +0000 (20:31 +0000)]
This patch reverts r1203, but in slightly different way. It seems there is a problem with the config of memory bots. The usage of std::locale in ANGLE is fine.
Review URL: https://codereview.appspot.com/6392052

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1205 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoReconstructed preprocessor.vcproj from libGLESv2.vcproj.
apatrick@chromium.org [Tue, 10 Jul 2012 23:30:30 +0000 (23:30 +0000)]
Reconstructed preprocessor.vcproj from libGLESv2.vcproj.

There was something different about the project properties in release builds that caused std::vector to have different member variable offsets, leading to the samples crashing in Release builds. Removed stuff that was specific to libGLESv2.vcproj. Project now builds in all configs including x64.
Review URL: https://codereview.appspot.com/6374050

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1204 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoBuilds for chrome memroy bots (windows only) do not link due to the usage of std...
alokp@chromium.org [Tue, 10 Jul 2012 17:50:12 +0000 (17:50 +0000)]
Builds for chrome memroy bots (windows only) do not link due to the usage of std::locale, the reason for which is still unknown.
This patch avoids the usage of std::locale, while still enforcing "C" locale and checking for overflow.
Review URL: https://codereview.appspot.com/6392046

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1203 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoImplement binary streams.
apatrick@chromium.org [Mon, 9 Jul 2012 22:34:06 +0000 (22:34 +0000)]
Implement binary streams.
Review URL: https://codereview.appspot.com/6357050

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1200 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoSupport for serializing a linked program to binary.
apatrick@chromium.org [Mon, 9 Jul 2012 22:15:33 +0000 (22:15 +0000)]
Support for serializing a linked program to binary.

The format has a text section followed by a binary section. The binary section contains an image of the device caps and the two shader executables. The text section has everything else newline deliminated.

Ran WebGL conformance tests with temporary change to glLinkProgram that round trips all linked programs through glGetProgramBinary and glProgramBinary. No regressions.
Review URL: https://codereview.appspot.com/6295092

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1199 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoFixed link error on GCC and clang. They complain about missing symbols even when...
alokp@chromium.org [Mon, 9 Jul 2012 18:39:32 +0000 (18:39 +0000)]
Fixed link error on GCC and clang. They complain about missing symbols even when those symbols are not used.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1196 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoFixed compile error on android. It was complaining about tolower. This patch removes...
alokp@chromium.org [Mon, 9 Jul 2012 18:27:04 +0000 (18:27 +0000)]
Fixed compile error on android. It was complaining about tolower. This patch removes the usage of tolower, and adds tests for checking both versions of hexadecimal integers - 0x and 0X.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1195 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoEnable the new preprocessor. Passes all unit-tests and WebGL conformance tests!
alokp@chromium.org [Mon, 9 Jul 2012 17:48:10 +0000 (17:48 +0000)]
Enable the new preprocessor. Passes all unit-tests and WebGL conformance tests!
Review URL: https://codereview.appspot.com/6357055

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1194 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoWebGL spec specifies maximum length of all types of tokens - not just identifier...
alokp@chromium.org [Mon, 9 Jul 2012 15:56:42 +0000 (15:56 +0000)]
WebGL spec specifies maximum length of all types of tokens - not just identifier tokens. And it also means preprocessing-tokens, not compiler tokens.
Note that this implies that non-compliant tokens even inside excluded #if blocks will trigger error.

TODO: This behavior should be implemented as a preprocessor option, so that a GLES2 compiler can choose to disable it.
Review URL: https://codereview.appspot.com/6355066

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1193 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoAvoid implicitly enabling centroid sampling on non-point rendering.
daniel@transgaming.com [Wed, 4 Jul 2012 19:16:35 +0000 (19:16 +0000)]
Avoid implicitly enabling centroid sampling on non-point rendering.

TRAC #21121
Issue=340
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1192 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoIncrease the maximum point size to what is reported by Direct3D.
daniel@transgaming.com [Wed, 4 Jul 2012 19:16:24 +0000 (19:16 +0000)]
Increase the maximum point size to what is reported by Direct3D.

TRAC #21121
Issue=345,305
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1191 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoRestricted the length of identifiers (including #define directive) to 256, as require...
alokp@chromium.org [Tue, 3 Jul 2012 19:33:10 +0000 (19:33 +0000)]
Restricted the length of identifiers (including #define directive) to 256, as required by webgl spec.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1186 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoLowered the severity of EOF_IN_DIRECTIVE from an ERROR to WARNING. There are just...
alokp@chromium.org [Tue, 3 Jul 2012 16:12:48 +0000 (16:12 +0000)]
Lowered the severity of EOF_IN_DIRECTIVE from an ERROR to WARNING. There are just too many shaders on internet (including webgl conformance test) that do not have a newline at the end of directives, especially #endif.
Review URL: https://codereview.appspot.com/6352059

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1185 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoMake sure that #version occurs before anything else, except for comments and white...
alokp@chromium.org [Tue, 3 Jul 2012 16:06:40 +0000 (16:06 +0000)]
Make sure that #version occurs before anything else, except for comments and white space.
Review URL: https://codereview.appspot.com/6348056

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1184 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoHandled the case where int and float are of correct format, but large. The GLSL spec...
alokp@chromium.org [Fri, 29 Jun 2012 21:26:03 +0000 (21:26 +0000)]
Handled the case where int and float are of correct format, but large. The GLSL spec is not very clear on how integers should be interpreted for expressions. C99 says the expression is of type intmax_t. I am parsing all integers as int except those in expressions, which are being parsed as unsigned int.
Review URL: https://codereview.appspot.com/6351051

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1179 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoUpdate revision
daniel@transgaming.com [Fri, 29 Jun 2012 01:10:07 +0000 (01:10 +0000)]
Update revision

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1178 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoMoved error-counting to Diagnostics so that errors generated during preprocessing...
alokp@chromium.org [Fri, 29 Jun 2012 00:06:58 +0000 (00:06 +0000)]
Moved error-counting to Diagnostics so that errors generated during preprocessing is included in the count.
Enabled logging of preprocessor diagnostics into info-log.
Review URL: https://codereview.appspot.com/6354047

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1177 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoUsed std::ostringstream instead of std::stringstream wherever applicable.
alokp@chromium.org [Thu, 28 Jun 2012 23:34:30 +0000 (23:34 +0000)]
Used std::ostringstream instead of std::stringstream wherever applicable.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1176 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoReplaced pp::Token::value with pp::Token::text. The term value will be used for a...
alokp@chromium.org [Thu, 28 Jun 2012 20:29:13 +0000 (20:29 +0000)]
Replaced pp::Token::value with pp::Token::text. The term value will be used for a function which will convert text to integer/float constant.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1175 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoMore expression tests for division by zero.
alokp@chromium.org [Thu, 28 Jun 2012 19:21:44 +0000 (19:21 +0000)]
More expression tests for division by zero.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1171 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoFix the compiler warnings on WebKit ports when updating ANGLE in WebKit.
maxvujovic@gmail.com [Wed, 27 Jun 2012 22:49:39 +0000 (22:49 +0000)]
Fix the compiler warnings on WebKit ports when updating ANGLE in WebKit.

Remove the varargs used for extra info formatting in the error() and warning() methods of ParseHelper. Use std::stringstream for formatting instead.

Review URL: http://codereview.appspot.com/6310067/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1170 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoIntroduced preprocessing token types. This fixes a bug where invalid tokens inside...
alokp@chromium.org [Wed, 27 Jun 2012 22:13:21 +0000 (22:13 +0000)]
Introduced preprocessing token types. This fixes a bug where invalid tokens inside excluded conditional block may report diagnostics. Now we let the invalid tokens to bubble through the preprocessor so that they have chance to be skipped.
Review URL: https://codereview.appspot.com/6356045

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1169 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoImplemented conditional processing.
alokp@chromium.org [Tue, 26 Jun 2012 04:37:55 +0000 (04:37 +0000)]
Implemented conditional processing.
Review URL: https://codereview.appspot.com/6333046

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1168 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months ago[SH_TIMING_RESTRICTIONS] Restrict sampler dependent values from the tex coord and...
maxvujovic@gmail.com [Mon, 25 Jun 2012 20:39:58 +0000 (20:39 +0000)]
[SH_TIMING_RESTRICTIONS] Restrict sampler dependent values from the tex coord and bias parameters of all sampling operations, not just texture2D.

Issue: 335
Review URL: https://codereview.appspot.com/6305049/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1167 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoFix sample project dependency on preprocessor.vcproj
daniel@transgaming.com [Mon, 25 Jun 2012 14:57:21 +0000 (14:57 +0000)]
Fix sample project dependency on preprocessor.vcproj

Issue=342

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1166 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoFix line-endings in libEGL.cpp
daniel@transgaming.com [Mon, 25 Jun 2012 14:57:18 +0000 (14:57 +0000)]
Fix line-endings in libEGL.cpp

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1165 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoRefactor program info log out of ProgramBinary and in to Program.
apatrick@chromium.org [Fri, 22 Jun 2012 19:27:21 +0000 (19:27 +0000)]
Refactor program info log out of ProgramBinary and in to Program.

Tested by setting breakpoint in esLoadProgram with the broken program.
Review URL: https://codereview.appspot.com/6305114

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1164 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoAdd preprocessor.vcproj to samples.sln.
apatrick@chromium.org [Fri, 22 Jun 2012 18:33:57 +0000 (18:33 +0000)]
Add preprocessor.vcproj to samples.sln.
Review URL: https://codereview.appspot.com/6326046

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1163 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoMerge no-flip-rows r1142 to trunk.
apatrick@chromium.org [Fri, 22 Jun 2012 18:27:01 +0000 (18:27 +0000)]
Merge no-flip-rows r1142 to trunk.
Review URL: https://codereview.appspot.com/6304052

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1162 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoAdded x64 config to preprocessor.vcproj.
alokp@chromium.org [Tue, 19 Jun 2012 20:24:23 +0000 (20:24 +0000)]
Added x64 config to preprocessor.vcproj.
Review URL: https://codereview.appspot.com/6295105

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1161 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoFixed compile error in the new preprocessor due to the change Preprocessor::predefine...
alokp@chromium.org [Tue, 19 Jun 2012 19:40:52 +0000 (19:40 +0000)]
Fixed compile error in the new preprocessor due to the change Preprocessor::predefineMacro() interface.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1160 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoFixed build for manually-maintained vcproj files.
alokp@chromium.org [Tue, 19 Jun 2012 18:53:39 +0000 (18:53 +0000)]
Fixed build for manually-maintained vcproj files.
Review URL: https://codereview.appspot.com/6297103

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1159 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoHooked up the new preprocessor behind a compile-time flag ANGLE_USE_NEW_PREPROCESSOR.
alokp@chromium.org [Tue, 19 Jun 2012 18:48:05 +0000 (18:48 +0000)]
Hooked up the new preprocessor behind a compile-time flag ANGLE_USE_NEW_PREPROCESSOR.
Review URL: https://codereview.appspot.com/6304095

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1158 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoAdded support for pre-defined macros.
alokp@chromium.org [Tue, 19 Jun 2012 18:39:48 +0000 (18:39 +0000)]
Added support for pre-defined macros.
Review URL: https://codereview.appspot.com/6301084

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1157 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoRenamed IsDepthFormat/IsStencilFormat to IsDepthTextureFormat/IsStencilTextureFormat.
daniel@transgaming.com [Tue, 19 Jun 2012 15:29:51 +0000 (15:29 +0000)]
Renamed IsDepthFormat/IsStencilFormat to IsDepthTextureFormat/IsStencilTextureFormat.

TRAC #20959
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1156 736b8ea6-26fd-11df-bfd4-992fa37f6226

21 months agoHandle all INTZ format queries.
daniel@transgaming.com [Tue, 19 Jun 2012 15:29:48 +0000 (15:29 +0000)]
Handle all INTZ format queries.

TRAC #20959
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1155 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoRemoved static destructors in DependencyGraphBuilder.
maxvujovic@gmail.com [Sat, 16 Jun 2012 02:45:24 +0000 (02:45 +0000)]
Removed static destructors in DependencyGraphBuilder.

Review URL: https://codereview.appspot.com/6296079/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1154 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoFixed compile error for translator_hlsl.
alokp@chromium.org [Fri, 15 Jun 2012 17:36:31 +0000 (17:36 +0000)]
Fixed compile error for translator_hlsl.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1153 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoFixed compile error on linux.
alokp@chromium.org [Fri, 15 Jun 2012 16:33:41 +0000 (16:33 +0000)]
Fixed compile error on linux.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1152 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoFixed compile error on linux.
alokp@chromium.org [Fri, 15 Jun 2012 16:30:08 +0000 (16:30 +0000)]
Fixed compile error on linux.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1151 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoPreparation of hooking up the new preprocessor.
alokp@chromium.org [Fri, 15 Jun 2012 16:25:11 +0000 (16:25 +0000)]
Preparation of hooking up the new preprocessor.
- Added custom Diagnostics class. Routed all info-log messages via this new class.
- Added custom DirectiveHandler class. Moved directive-handling code to this class and routed the old path.
- Deleted lexer_glue because it is not needed anymore. The new preprocessor is almost ready!
- Killed a bunch of dead code related to PragmaTable.
Review URL: https://codereview.appspot.com/6308074

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1150 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoImplemented line directive.
alokp@chromium.org [Fri, 15 Jun 2012 15:40:27 +0000 (15:40 +0000)]
Implemented line directive.
Review URL: https://codereview.appspot.com/6307083

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1149 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoImplemented macro expansion.
alokp@chromium.org [Thu, 14 Jun 2012 18:23:23 +0000 (18:23 +0000)]
Implemented macro expansion.
Review URL: https://codereview.appspot.com/6303052

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1148 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoRemove an unused variable from readCPPline()
daniel@transgaming.com [Wed, 13 Jun 2012 15:42:30 +0000 (15:42 +0000)]
Remove an unused variable from readCPPline()

This causes problems with -Wunused-but-set-variable in GCC 4.6.

Review: http://codereview.appspot.com/6296o59/

Author: Steve Block

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1147 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoAdd placeholder entry points for GL_OES_get_program_binary.
apatrick@chromium.org [Fri, 8 Jun 2012 17:52:30 +0000 (17:52 +0000)]
Add placeholder entry points for GL_OES_get_program_binary.
Review URL: https://codereview.appspot.com/6279054

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1146 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoAdd the SH_CSS_SHADERS_SPEC flag.
maxvujovic@gmail.com [Fri, 8 Jun 2012 17:47:59 +0000 (17:47 +0000)]
Add the SH_CSS_SHADERS_SPEC flag.

Review URL: https://codereview.appspot.com/6270050/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1145 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoMove ProgramBinary into new file.
apatrick@chromium.org [Fri, 8 Jun 2012 00:45:32 +0000 (00:45 +0000)]
Move ProgramBinary into new file.
Review URL: https://codereview.appspot.com/6299058

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1144 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoRefactor Program into Program and ProgramBinary.
apatrick@chromium.org [Thu, 7 Jun 2012 21:09:53 +0000 (21:09 +0000)]
Refactor Program into Program and ProgramBinary.

Program manages the state and lifetime of the program object.

ProgramBinary holds the linked program and the code to do the linking.

There should be no functional change. WebGL conformance tests did not regress.
Review URL: https://codereview.appspot.com/6267047

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1143 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoProgram::link() and callees do not access mPixelHLSL, mVertexHLSL, mFragmentShader...
apatrick@chromium.org [Wed, 6 Jun 2012 20:21:55 +0000 (20:21 +0000)]
Program::link() and callees do not access mPixelHLSL, mVertexHLSL, mFragmentShader, mVertexShader, mAttributeBinding.

mPixelHLSL and mVertexHLSL are deleted because they are only used during linking.
Review URL: https://codereview.appspot.com/6306047

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1141 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoInitial specification for ANGLE_program_binary.
apatrick@chromium.org [Wed, 6 Jun 2012 20:06:20 +0000 (20:06 +0000)]
Initial specification for ANGLE_program_binary.
Review URL: https://codereview.appspot.com/6267048

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1140 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoIf a uniform was created before, still set the register type index since it can be...
daniel@transgaming.com [Tue, 5 Jun 2012 19:51:49 +0000 (19:51 +0000)]
If a uniform was created before, still set the register type index since it can be different.

TRAC #20948
Issue=337
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1139 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoRemoved redundant registerCount > 0 checks. The register indices now indicate presence.
daniel@transgaming.com [Tue, 5 Jun 2012 19:51:46 +0000 (19:51 +0000)]
Removed redundant registerCount > 0 checks. The register indices now indicate presence.

TRAC #20948
Issue=337
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1138 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoRefactored setting the register information.
daniel@transgaming.com [Tue, 5 Jun 2012 19:51:43 +0000 (19:51 +0000)]
Refactored setting the register information.

Avoided calling GetConstantByName.

TRAC #20948
Issue=337
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1137 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoStore multiple register indices per uniform.
daniel@transgaming.com [Tue, 5 Jun 2012 19:51:40 +0000 (19:51 +0000)]
Store multiple register indices per uniform.

TRAC #20948
Issue=337
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1136 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoError out if depth textures have more than one level.
daniel@transgaming.com [Tue, 5 Jun 2012 19:50:01 +0000 (19:50 +0000)]
Error out if depth textures have more than one level.

Trac #20959
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1135 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoFix error checking for glTexSubImage2D
daniel@transgaming.com [Tue, 5 Jun 2012 19:49:58 +0000 (19:49 +0000)]
Fix error checking for glTexSubImage2D

Trac #20959
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1134 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoFix error checking for glTexImage2D
daniel@transgaming.com [Tue, 5 Jun 2012 19:49:55 +0000 (19:49 +0000)]
Fix error checking for glTexImage2D

Trac #20959
Signed-off-by: Nicolas Capens
git-svn-id: http://angleproject.googlecode.com/svn/trunk@1133 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoUpdates to ANGLE_depth_texture
daniel@transgaming.com [Tue, 5 Jun 2012 19:49:53 +0000 (19:49 +0000)]
Updates to ANGLE_depth_texture

Trac #20959
 - fix a number of incorrect error values
 - disallow multi-level depth textures

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1132 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoApply SH_TIMING_RESTRICTIONS to all samplers.
maxvujovic@gmail.com [Mon, 4 Jun 2012 21:06:05 +0000 (21:06 +0000)]
Apply SH_TIMING_RESTRICTIONS to all samplers.

Issue: 332
Review URL: https://codereview.appspot.com/6273044/

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1131 736b8ea6-26fd-11df-bfd4-992fa37f6226

22 months agoDisallow GL_ALPHA for framebuffer attachment rendering.
daniel@transgaming.com [Fri, 1 Jun 2012 01:45:20 +0000 (01:45 +0000)]
Disallow GL_ALPHA for framebuffer attachment rendering.

TRAC #20943
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1129 736b8ea6-26fd-11df-bfd4-992fa37f6226