Commit Graph
19 Commits
Author SHA1 Message Date
Jamie Madill a3fe2b4e1f Update non-default constructors in shadervars.h.
Most of these constructors are unused. Remove the unused ones,
and change the usage of existing constructors to be consistent.

BUG=angle:466,697

Change-Id: I455dd314036e1dfcb8c4690bab577b81dd0e060c
Reviewed-on: https://chromium-review.googlesource.com/208355
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-31 20:38:06 +00:00
Jamie Madill f6d38b05ce Fix CollectVariablesTest GCC/Clang compile errors.
BUG=angle:696

Change-Id: I193f6771d85f2b777e84dc4d650b50fb31875489
Reviewed-on: https://chromium-review.googlesource.com/207770
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-14 16:49:59 +00:00
Jamie Madill d5512cd42b Collect shader outputs and interface block information.
This paves the way for returning ES3-specific info from the shader
translator with the new query methods.

BUG=angle:466

Change-Id: Ib13cdb604854cdf11e9dc00dd94f18eadc946561
Reviewed-on: https://chromium-review.googlesource.com/206770
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-07-14 13:53:02 +00:00
Jamie Madill a718c1e002 Use shader variable types for variable collection.
Retire the old TVariableInfoList structure, and use the new
objects which we will expose more directly through the API.

BUG=angle:466

Change-Id: I999a97369bfb67cf73cd659c4fe885b41429d304
Reviewed-on: https://chromium-review.googlesource.com/205839
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-03 17:23:49 +00:00
Jamie Madill 47149b1305 Add GLES 3 types to the VariablePacker test.
These include the new sampler types, non-square matices, and
unsigned int vectors.

BUG=angle:466

Change-Id: I0d88fadfc3f81a2d9be604ee1dffefd5a4a343c5
Reviewed-on: https://chromium-review.googlesource.com/205838
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-03 17:22:37 +00:00
Jamie Madill aa72d78207 Remove duplicate SH and GL functions.
In several places we were using variable query methods that
were duplicated between the old SH enums and the corresponding
GL enums. We can use the common GL enum versions now.

BUG=angle:466

Change-Id: Ib8797fe6bc75828e05aed37b1f5fbd4b9ba03d22
Reviewed-on: https://chromium-review.googlesource.com/205594
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-03 17:22:20 +00:00
Jamie Madill 183bde5527 Return shader variable information using GLenum values.
Instead of duplicating GL header define values, explictly return
GLenum for variable queries in the shader inspection API. This
reduces the duplicate defines in the shader compiler header.

BUG=angle:466

Change-Id: Iddaaff597b188251fa2e546f352bf77ab3ac43bc
Reviewed-on: https://chromium-review.googlesource.com/205860
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
2014-07-03 17:22:09 +00:00
Jamie Madill ce50555375 Revert "Return variable type queries using GLenum values."
Breaks the FYI bots until we get Chromium patched.

BUG=angle:466

This reverts commit 53221f5a03.

Change-Id: Ib28548df5c10a6f76f46e4cf8f2013dca5cf0ee2
Reviewed-on: https://chromium-review.googlesource.com/205850
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-06-26 19:00:37 +00:00
Jamie Madill 53221f5a03 Return variable type queries using GLenum values.
Instead of duplicating GL header define values, explictly return
GLenum for variable queries in the shader inspection API. This
reduces the duplicate defines in the shader compiler header.

BUG=angle:466

Change-Id: If631b20ce68747297a946e1371def7709027a613
Reviewed-on: https://chromium-review.googlesource.com/204937
Tested-by: Jamie Madill <[email protected]>
Reviewed-by: Nicolas Capens <[email protected]>
Reviewed-by: Zhenyao Mo <[email protected]>
2014-06-26 18:07:37 +00:00
Jamie Madill 37f77d2e1a Fixes to the standalone Linux build.
Several small build errors present on Linux cropped up due to
different warning flags and platform quirks.

BUG=angle:627

Change-Id: If8f651cacf05bb06ecb129be47b12729ccc3f69b
Reviewed-on: https://chromium-review.googlesource.com/197724
Reviewed-by: Shannon Woods <[email protected]>
Reviewed-by: Geoff Lang <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-05-01 15:36:13 +00:00
Geoff Lang 06bcde59e8 Remove gmock the dependency from angle_tests and compiler_tests.
BUG=angle:611

Change-Id: Ieb250bda25d62cda3e0690d05d814a4a39062d92
Reviewed-on: https://chromium-review.googlesource.com/197042
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-04-25 21:36:15 +00:00
Geoff Lang 1deca4fd84 Don't include the test main files in the source listings.
Since chrome adds the ANGLE test source directly to it's own projects,
the main function is defined twice.  Remove the main file from the source
listings and only add it for our test executables.

BUG=angle:568

Change-Id: I30b481a23d5de80341d7f339583a43ad2f4391bb
Reviewed-on: https://chromium-review.googlesource.com/195345
Reviewed-by: Jamie Madill <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Geoff Lang <[email protected]>
2014-04-17 15:03:44 +00:00
Jamie Madill 236be22188 Add in gypi scripts for preprocessor and compiler tests.
Chromium directly includes our .gypi files in its own standalone
tests, hence we need to keep files where it looks for includes.
Previously we had removed the gypi files with the new project
structures.

BUG=angle:568

Change-Id: I2cf87bdd3d9635ca8e58b991b9a3e55e00261851
Reviewed-on: https://chromium-review.googlesource.com/187650
Reviewed-by: Zhenyao Mo <[email protected]>
Reviewed-by: Shannon Woods <[email protected]>
Tested-by: Jamie Madill <[email protected]>
2014-02-25 20:48:02 +00:00
Geoff Lang b60465025f Moved the compiler test initialization and tear down into a gtest environement class.
Change-Id: I1fd05a188830567b04b9341793e64488da027894
Reviewed-on: https://chromium-review.googlesource.com/179353
Reviewed-by: Nicolas Capens <[email protected]>
Commit-Queue: Nicolas Capens <[email protected]>
Tested-by: Nicolas Capens <[email protected]>
Reviewed-by: Jamie Madill <[email protected]>
Commit-Queue: Jamie Madill <[email protected]>
2013-12-11 22:03:01 +00:00
Geoff Lang 8622e55452 Merge 16a3eb3e9f from master.
Fix compiler test initialization issues.

We should call ShInitialize() / ShFinalize() once per process, so moving
them out of individual test's Setup() / Shutdown() to the test main().

BUG=
[email protected]

Review URL: https://codereview.appspot.com/13568048
2013-10-17 09:52:37 -04:00
Geoff Lang 0049e43d65 Fixed the DEPS folder and added a .gclient file so gclient sync will now work. 2013-10-17 09:37:05 -04:00
Geoff Lang 17732823f9 Moved the compiler source files into directories based on their project and added a compiler.gypi to generate the compiler projects. 2013-10-17 09:36:59 -04:00
Jamie Madill eb1a010f0f Add expression complexity and call stack depth limits.
git-svn-id: https://angleproject.googlecode.com/svn/trunk@2242 736b8ea6-26fd-11df-bfd4-992fa37f6226

TRAC #23333
Authored-by: [email protected]
Signed-off-by: Shannon Woods
Signed-off-by Nicolas Capens
Merged-by: Jamie Madill
Conflicts:

	src/common/version.h
2013-07-19 18:06:52 -04:00
[email protected] 8d80479954 Add Variable Packing checks to ANGLE
BUG=373
TEST=unit tests



git-svn-id: https://angleproject.googlecode.com/svn/trunk@1317 736b8ea6-26fd-11df-bfd4-992fa37f6226
2012-10-17 21:33:48 +00:00