- 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>
-
- 08 Jun, 2015 5 commits
-
-
Alexis Hetu authored
Instanced rendering only requires a single attribute per instance, which was handled properly everywhere except in the streaming buffer, so that had to be fixed. All related dEQP tests pass. Change-Id: I9b9bd6cd790dfe7ecf7f5d2ed84623bfa4da4b6f Reviewed-on: https://swiftshader-review.googlesource.com/3430Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
Alexis Hetu authored
Implementation attempt for glInstanceID. Related dEQP tests pass. Change-Id: I6391699a127cc7c159a2a64e3ffeaa528b611f97 Reviewed-on: https://swiftshader-review.googlesource.com/3412Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Made all inputs const in ShaderCore. Change-Id: I56792cea564f40e6f5b096349447b22439606e43 Reviewed-on: https://swiftshader-review.googlesource.com/3410Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Fragment and Vertex inputs and outputs were treated as OpenGL ES2.0 attributes and varyings, but OpenGL ES3.0 inputs and outputs have different limitations and must be treated differently. This cl simply introduces the new types, without modifying the ES2.0 behavior and only modifying ES3.0 to allow integer varyings when they are flat. Change-Id: I965cb576bab3f505602af9e055438bcc7c18cdfd Reviewed-on: https://swiftshader-review.googlesource.com/3371Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Maxime Grégoire authored
Change-Id: I85f6306434f5810dd8357eeeedfb764bf2318668 Reviewed-on: https://swiftshader-review.googlesource.com/3411Tested-by:
Maxime Grégoire <mgregoire@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 07 Jun, 2015 1 commit
-
-
Alexis Hetu authored
This cl should be a NOOP. It simply adds some basic functionality in BaseTypes.h that will be useful in eventually enabling Uniform Blocks in the parser. Change-Id: I0c2b3200e0ae95ddce86367663081c2aef751308 Reviewed-on: https://swiftshader-review.googlesource.com/3311Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 04 Jun, 2015 5 commits
-
-
Alexis Hetu authored
Implementation for the roundEven glsl intrinsic function. All dEQP roundEven tests pass. Change-Id: I8b6f3704f03eea32b08a6c2dc318ecb99a01957d Reviewed-on: https://swiftshader-review.googlesource.com/3382Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Defined more derivatives and texture functions for glsl. By itself, this enables a few hundred dEQP tests to pass for derivatives, which were already implemented properly in some cases. Change-Id: I84063205447ee4813409a3eb52aeb2ad79793a88 Reviewed-on: https://swiftshader-review.googlesource.com/3383Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21635916 Change-Id: I1216a96d17228e53155aaaf24d43365afb5cead7 Reviewed-on: https://swiftshader-review.googlesource.com/3392Reviewed-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 21635916 Change-Id: Ib6836cbc42fa4ceebf0af66b9891dde1491594c3 Reviewed-on: https://swiftshader-review.googlesource.com/3391Reviewed-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: I27471691cc0d0d475c089483c560ca5e00f5d64a Reviewed-on: https://swiftshader-review.googlesource.com/3380Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 03 Jun, 2015 1 commit
-
-
Alexis Hetu authored
Implemented API level of glFramebufferTextureLayer. All functions should now be adapted to handle level and layer, all the way to RenderbufferTexture3D, where layer is still unimplemented. Change-Id: Id5fe94f998ee517ae84cb0d6e60d535cc7891fe3 Reviewed-on: https://swiftshader-review.googlesource.com/3320Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-