- 30 Jun, 2015 1 commit
-
-
Alexis Hetu authored
glTexSubImage3D and glCopyTexSubImage3D were missing some validity checks for size and offset parameters. Change-Id: Iff1aa034318c1fc58f9bb433c61bd8623493604a Reviewed-on: https://swiftshader-review.googlesource.com/3602Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 29 Jun, 2015 7 commits
-
-
Alexis Hetu authored
This function is simply used to notify the program that the binary may be queried later on by the application. For now, this hint is stored in the program, but otherwise ignored, as querying the binary is still unimplemented. Change-Id: Ie59f21d7b803111ce6091718b84ecfbe78c03bdd Reviewed-on: https://swiftshader-review.googlesource.com/3545Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Change-Id: I63f7324139ff4f337996c14380ef2862dbd8465b Reviewed-on: https://swiftshader-review.googlesource.com/3547Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
glGetActiveUniformBlockiv was using the current program instead of using the program passed as an argument to the function, causing it to misbehave. Change-Id: I69b640b20793bd8e7e0c4142a1ff74d0ea796747 Reviewed-on: https://swiftshader-review.googlesource.com/3583Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
Nicolas Capens authored
OpenGL transforms the light position by the model-view matrix at the time when that position is specified. Bug 22124687 Change-Id: Ia6bb711c9eb20348faec45c46e45ee9f6ef92112 Reviewed-on: https://swiftshader-review.googlesource.com/3524Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 22124687 Change-Id: I88ea87bbf7785d61a2ca61db2855d07c0347f719 Reviewed-on: https://swiftshader-review.googlesource.com/3582Reviewed-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 22124687 Change-Id: Ic8a458962e370f372c2e97052c9c86f9b5c6dede Reviewed-on: https://swiftshader-review.googlesource.com/3511Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21766174 Change-Id: Id53882a7738fab8669d355fd2f32e420a93cbae6 Reviewed-on: https://swiftshader-review.googlesource.com/3500Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 26 Jun, 2015 6 commits
-
-
Nicolas Capens authored
Sampling byte4 data currently reads 8 bytes for unpacking purposes. Allocate 4 more bytes to prevent reading outside the image, even though it's unused data. Bug 21935792 Change-Id: I162fb3f3575131cedb008f82ef5170e773719e41 Reviewed-on: https://swiftshader-review.googlesource.com/3572Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21935792 Surface::size() already takes into account that compressed images need their dimensions rounding up to whole 4x4 tiles. Change-Id: Ie6b7b5d23294e8d3c85b3b362670cfe0c569585d Reviewed-on: https://swiftshader-review.googlesource.com/3571Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Greg Hartman authored
I sheilded a MSVC pragma, silenced some classes of warnings. One of the classes involves an overload that hides a member function. I filed a bug to make certain that this isn't masking a coding error: https://b.corp.google.com/issues/22117892 Change-Id: I7090cddc78880c9ee7814aecc72cc107003dfede Reviewed-on: https://swiftshader-review.googlesource.com/3483Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Greg Hartman <ghartman@google.com>
-
Alexis Hetu authored
Change-Id: Icd05628204b831ddeefffaec2274fa6661624740 Reviewed-on: https://swiftshader-review.googlesource.com/3540Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ic0e4831bf3459d54b51e63ebe50b7394fb54e14c Reviewed-on: https://swiftshader-review.googlesource.com/3562Reviewed-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: Id212644a19443434ca14f78555e3d159ac4266e8 Reviewed-on: https://swiftshader-review.googlesource.com/3570Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 25 Jun, 2015 6 commits
-
-
Alexis Hetu authored
ES3 supports set/get for both stencil and depth attachments simultaneously though GL_DEPTH_STENCIL_ATTACHMENT, so support for it was added in FramebufferRenderbuffer and GetFramebufferAttachmentParameteriv. Change-Id: I09b077de1f31899a20baacbd651c65dfa9e7fc5d Reviewed-on: https://swiftshader-review.googlesource.com/3546Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Change-Id: I2bfb2072028de66aa89306e51a164ba90bfb9114 Reviewed-on: https://swiftshader-review.googlesource.com/3548Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Uniforms can now legally be used as indices in OpenGL ES 3.0, so they now have to be handled properly in the dynamic indexing analysis. Change-Id: I971aa55edcbc73796c30e0acc99156b513a78b80 Reviewed-on: https://swiftshader-review.googlesource.com/3550Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
It is illegal to start a new draw operation while a transform feedback is active. Change-Id: I5ebb01889ce5154162a51f5e6cfbc8431554c879 Reviewed-on: https://swiftshader-review.googlesource.com/3549Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Recursion analysis was broken, because assigning the error value UINT_MAX was then automatically increased by 1 at the caller site, resulting in a 0, and recursions would go undetected. Change-Id: I8ab9990c12d827d8eac2d6084f9170096ad2aef2 Reviewed-on: https://swiftshader-review.googlesource.com/3552Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Writing for(;;) in a shader was crashing because a NULL condition was dereferenced. Added the NULL pointer check to fix the crash. Change-Id: I2be7a4594029c928ff83221f65503636bc28f4a9 Reviewed-on: https://swiftshader-review.googlesource.com/3553Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 23 Jun, 2015 1 commit
-
-
Alexis Hetu authored
There was a switch/case left that hadn't yet been replaced by Context::getBuffer, so I fixed that. Change-Id: I71bca410322e1cfc130a2753d738c3b64fb271c5 Reviewed-on: https://swiftshader-review.googlesource.com/3544Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 22 Jun, 2015 4 commits
-
-
Alexis Hetu authored
Unsized arrays declare with an empty [] without a specified size are now supported properly in the glsl parser. Also moved the construction code from the parser into TParseContext. Change-Id: Ic7b3efeee51da1a264e26af4d7908e7d2fccebd9 Reviewed-on: https://swiftshader-review.googlesource.com/3520Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 20025568 Change-Id: I37d2c7171e0704b4064e56e8ca8799f930038d87 Reviewed-on: https://swiftshader-review.googlesource.com/3481Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
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 5 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>
-