- 22 Jun, 2015 2 commits
-
-
Alexis Hetu authored
Moved functionality related to binary math into TParseContext. No WebGL tests were hurt in the making of this CL. Change-Id: I51b9aa8f98ceedc4e4a93b4b907d264086157c18 Reviewed-on: https://swiftshader-review.googlesource.com/3512Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Added support for @ in the parser and replaced all instances of $N.line by @N. Change-Id: I7a18278ee0cd5deb90609508abbda2af656daaa4 Reviewed-on: https://swiftshader-review.googlesource.com/3526Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 16 Jun, 2015 3 commits
-
-
Nicolas Capens authored
Change-Id: I8262fa4bc527d719680d83bf9a1b8e88bdae07f8 Reviewed-on: https://swiftshader-review.googlesource.com/3514Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ia12819357406c6ee98f0af2909d793cb62bfa62f Reviewed-on: https://swiftshader-review.googlesource.com/3510Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Lines should be identified by a TSourceLoc object, which is currently typedefed to an int, but should be changed to a struct soon, so making sure the parser functions can handle the change. Change-Id: Iaafad862dd1078591757695bf205279e7c4202cf Reviewed-on: https://swiftshader-review.googlesource.com/3513Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 15 Jun, 2015 1 commit
-
-
Nicolas Capens authored
Change-Id: Id0d55c1364fc3db05821eb6ef666aed8c5713e31 Reviewed-on: https://swiftshader-review.googlesource.com/3503Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 12 Jun, 2015 6 commits
-
-
Alexis Hetu authored
This adds switch/case keywords to glsl. This makes the shaders that include these keywords compile, but they don't run properly yet, partly because the "break" statement only handles loops currently. Change-Id: I1f52b445e1124ed3931843c46e27ecc1d9ce3d11 Reviewed-on: https://swiftshader-review.googlesource.com/3400Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
Alexis Hetu authored
Added code to parse interface blocks and the corresponding layout qualifiers to the glsl parser. Change-Id: Idfcbf08f3f877ea9641ae611e6bddd2be1ffb952 Reviewed-on: https://swiftshader-review.googlesource.com/3480Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
- Changing "char*" to "const char*" when a function can receive string literals - Removed some unused variables and members - Fixed some signed vs unsigned comparisons - Added braces for safety on code like: if(...) if(...) ... else ... to make it: if(...) { if(...) ... else ... } otherwise the else is ambiguous - Reordered some member initializations to fit the declaration order in the class - OutDir must end with a backslash in VS Change-Id: I903bd7afac882090841da0c0f4ebb30db0a5dd37 Reviewed-on: https://swiftshader-review.googlesource.com/3501Tested-by:Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
I added a FIXME in the code because EvqFragmentOut hadn't been added yet, since this has now been done, I can remove the comment to address the FIXME. Change-Id: I67f4371802eb0e30278b3eaafab238a20798ae69 Reviewed-on: https://swiftshader-review.googlesource.com/3502Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Implemented the necessary functions for the API level implementation of glBindBufferBase and glBindBufferRange. Also cleaned up the TransformFeedback API functions a little for uniformity with uniform buffers. Change-Id: Iccc835f175d4e8bc4ee030343936714b7ff224ac Reviewed-on: https://swiftshader-review.googlesource.com/3030Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
Alexis Hetu authored
Cleaned up the initialer methods in the parser and added first-class array initializers. Passes all WebGL tests. Change-Id: Ia73db8bfd461f36b717444a8ba4c9ec77d1cee36 Reviewed-on: https://swiftshader-review.googlesource.com/3473Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
- 11 Jun, 2015 19 commits
-
-
Nicolas Capens authored
Bug 21766174 Change-Id: I1428bcceb2fbf6c649632112f773c3a0625e3775 Reviewed-on: https://swiftshader-review.googlesource.com/3479Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21766174 Change-Id: If2fbb543303db27a2a2bd13e1a75cb7f7310d6eb Reviewed-on: https://swiftshader-review.googlesource.com/3478Reviewed-by:
Greg Hartman <ghartman@google.com> Tested-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
SwiftShader had over 270 warnings and this reduces the count to about 90, some of which can be addressed later, since some are less trivial to remove. The changes include: - Making sure we don't build any project with RTTI enabled, otherwise, we get some vftable size mismatch warnings - Making sure exception handling is the same for all configurations - Changing minus <unsigned> to the equivalent, and valid, ~<unsigned> + 1 - Explicitly casting types to bool by adding "!= 0" or "!= nullptr", depending on the case - Making sure no #define overrules another one without first doing the proper #undef of that #define - Removing signed VS unsigned comparisons - Making sure WinMain is __stdcall WebGL tests passed. Change-Id: I8d8d80adc862633b656d7e99c8ea461924fc0ef4 Reviewed-on: https://swiftshader-review.googlesource.com/3475Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Initial implementation of outerProduct, transpose, determinant and inverse. This is for const objects only. The dynamic implementation will follow. Note that the 4x4 determinant and inverse is not optimal (some multiplications are repeated), and will have to be implemented properly for the dynamic case. Change-Id: If3b38d8cfe5d2d49835ae3823ceda10e286dd9b9 Reviewed-on: https://swiftshader-review.googlesource.com/3282Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
- Added new FenceSync object and related API functions implementations - Added FenceSync to ResourceManager - Moved Sampler to ResourceManager Change-Id: Ia3d42b749811a4e1ed087b41f0c871beb8fdb8d4 Reviewed-on: https://swiftshader-review.googlesource.com/2931Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Technically, the rest of the code *should* already support changing this value and all related changes should propagate properly. This allows a few dEQP tests that were "unsupported" to now pass. Change-Id: Ie99e1fba88e7642be447a380b78969365194ca5f Reviewed-on: https://swiftshader-review.googlesource.com/3461Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Implemented the API functions to set and get the varyings used for transform feedback. Change-Id: I0d6451cfbd4a4b1b96dd9c064bb9b310b46764c4 Reviewed-on: https://swiftshader-review.googlesource.com/3462Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Greg Hartman authored
Change-Id: I8a9cd32b50121f6c02b78b1f97eb78d6946cd71e Reviewed-on: https://swiftshader-review.googlesource.com/3476Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Greg Hartman <ghartman@google.com>
-
Alexis Hetu authored
Moved some of the struct / indexing code from glslang.y to the ParserHelper class and prepared it for uniform blocks. Change-Id: I2d5d380f662f36f04d74783fd542c4b258d3f3a5 Reviewed-on: https://swiftshader-review.googlesource.com/3441Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I121abb32d898f5887586680b52c4283ee6e58f96 Reviewed-on: https://swiftshader-review.googlesource.com/3472Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
INT_MAX is defined in limits.h Change-Id: Ic7e223aebae594e1ed18e1185edc573114d851ff Reviewed-on: https://swiftshader-review.googlesource.com/3474Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21716622 Change-Id: I60a90b91371276f512befb9c1b809a3c4d388eb2 Reviewed-on: https://swiftshader-review.googlesource.com/3447Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21716622 Change-Id: I3154fc0c3da5c9f2f280101e8e5840ca45eb144e Reviewed-on: https://swiftshader-review.googlesource.com/3446Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21716622 Change-Id: I041fd37d461114a52a3b3dfa57e4aee6c01e5ee5 Reviewed-on: https://swiftshader-review.googlesource.com/3445Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21716622 Change-Id: Ifa5940c17932066b3860ff148be8b6b2bec726c0 Reviewed-on: https://swiftshader-review.googlesource.com/3444Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21716622 Change-Id: Ie416118676c984ebdd2f153b35c6f60fa616e4c7 Reviewed-on: https://swiftshader-review.googlesource.com/3443Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21716622 Change-Id: I1e07ee9b8ccfd0bd34af9b1f1d76802f3398f7ca Reviewed-on: https://swiftshader-review.googlesource.com/3442Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Optimize blitting by avoiding locking the internal buffer when the external one is dirty. Bug 21424351 Change-Id: Ib798418d0fa93ae5049102ca767dadc2806cd224 Reviewed-on: https://swiftshader-review.googlesource.com/3439Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
They should always be identical to the internal ones. Bug 21424351 Change-Id: Iafa18c14cc4d2e16f20238dac0208a8159cbaa6a Reviewed-on: https://swiftshader-review.googlesource.com/3460Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 10 Jun, 2015 4 commits
-
-
Nicolas Capens authored
Change-Id: I12249cc2e647296eb45f9e7f9082fe3b477b9011 Reviewed-on: https://swiftshader-review.googlesource.com/3463Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21716622 Change-Id: I090154cdfbb6f8781df578b3f493d3ecd297c847 Reviewed-on: https://swiftshader-review.googlesource.com/3437Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21716622 Change-Id: Ida62ad1f1f51f035969754f2c5ff800a0afc6fd5 Reviewed-on: https://swiftshader-review.googlesource.com/3452Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Added TField, TFieldListCollection, TStructure and TInterfaceBlock for structures and uniform blocks. In the TType class, changed structure's type from TTypeList to TStructure and made related changes in other files to reflect this change. Change-Id: Ided4c535651a566952c3314c8c4f31c2d0ccdcca Reviewed-on: https://swiftshader-review.googlesource.com/3451Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 09 Jun, 2015 5 commits
-
-
Alexis Hetu authored
Added proper structures to implement glGetActiveUniformsiv and added it to the Program class. Change-Id: I41b8fd17b6e533ad2638778de9854206d10fe13d Reviewed-on: https://swiftshader-review.googlesource.com/3435Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Numbers like "1.0f" or "10u" are now allowed in GLSL, so I added code to do proper parsing of these numbers. Change-Id: Ia4635ab2b449399bd4adea2c5c94567b5b8a5f8e Reviewed-on: https://swiftshader-review.googlesource.com/3434Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
A missing & was causing an uninitialized parameter issue and a missing return in glGetUniformBlockIndex, in the case where the context is NULL, were causing warnings. Change-Id: Ifb40583c6d08d185d2e60f96066f1436398318ac Reviewed-on: https://swiftshader-review.googlesource.com/3436Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ife60e89ac857e103138a139c01be68f761d6dc3c Reviewed-on: https://swiftshader-review.googlesource.com/3432Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Implemented API level functionality for Uniform Blocks all the way down to the Program, without actually linking the uniforms, which will require more work in shaders to interpret these properly. Change-Id: I503a9bca63adb5160be7ff7597d3996d356fc1e3 Reviewed-on: https://swiftshader-review.googlesource.com/3015Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-