- 07 Jul, 2015 1 commit
-
-
Alexis Hetu authored
A few small things were missing to get the transform feedback varyings gather operation to work properly: - A basic implementation of Program::gatherTransformFeedbackLinkedVaryings() has been made as a first step. - transformFeedbackBufferMode is now initialized in the constructor - transformFeedbackLinkedVaryings are now properly reset Also: - Removed useless DirectX semantic information from the LinkedVarying class - ++it is more efficient than it++ in a loop, because it++ create a temporary object to return the original state of the iterator, so I made the changes where applicable in Program.cpp. Change-Id: I78513f185ef5ef1a17448606b5c598c22d0d217e Reviewed-on: https://swiftshader-review.googlesource.com/3621Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 06 Jul, 2015 4 commits
-
-
Alexis Hetu authored
These new entries will need to be updated once more internal formats are available, but this will do for now. Also added the possibility to query the Framebuffer 0 for GL_BACK, GL_DEPTH and GL_STENCIL, as is allowed by OpenGL ES 3.0. Finally, added a missing break in the GL_DEPTH_STENCIL_ATTACHMENT case. Change-Id: Ifc32cc306c762ff58f9a9fe6608f7c19d3901c31 Reviewed-on: https://swiftshader-review.googlesource.com/3632Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
This is a first step in handling interface blocks properly by allowing indexing of blocks to be handled properly. This does not include any interaction with the Program, which will come in a following step. No WebGL tests were injured in the making of this cl. Change-Id: I575b08502f7f4dd63ca7b57f2ca0630367adf0de Reviewed-on: https://swiftshader-review.googlesource.com/3589Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Added the same info as Angle's for ES3 only errors. Change-Id: I2f11b34b06f8e1cc1b0a200d568c709ca35469ab Reviewed-on: https://swiftshader-review.googlesource.com/3639Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Added TParseContext::addFunctionCallOrMethod() to move function creation functionality out of glslang.y. Change-Id: Ia23e8c2490ba9d2bb1fcd00a1ef06eab5cf60b80 Reviewed-on: https://swiftshader-review.googlesource.com/3640Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 03 Jul, 2015 7 commits
-
-
Nicolas Capens authored
Change-Id: I0fe062ea826b73b2bdf28ad3ed6e72e51c576840 Reviewed-on: https://swiftshader-review.googlesource.com/3635Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Since we can create OpenGL ES 3.0 contexts locally now, we should also be able to retrieve the correct version. Change-Id: I9154869ddea5951946c8e23e59a00beb042fca8c Reviewed-on: https://swiftshader-review.googlesource.com/3633Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Interface blocks can now properly return their size from TType::getElementSize() or TType::elementRegisterCount(). Change-Id: Ief69163088839784cf347160bb49fd64f1a2a395 Reviewed-on: https://swiftshader-review.googlesource.com/3584Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Changed 15 public members of TParseContext so that they are now private and added the appropriate setters/getters, along with the required code changes in the parser. Change-Id: I0a3ea67540d165e9837a3fe8e64fda4843a3cf96 Reviewed-on: https://swiftshader-review.googlesource.com/3543Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 22123818 Change-Id: Icd26392008ce50ad822c2ab961eeb86117ca8544 Reviewed-on: https://swiftshader-review.googlesource.com/3626Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 22123818 Change-Id: I2c72e221d9d9410c32875188a5edea6ce7310f20 Reviewed-on: https://swiftshader-review.googlesource.com/3625Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 22123818 Change-Id: If9bf78d6b44ccd0662676c8896837cca8829efc8 Reviewed-on: https://swiftshader-review.googlesource.com/3624Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 02 Jul, 2015 1 commit
-
-
Alexis Hetu authored
Bug 21323928 Change-Id: I51addf7a354d3abac34807d60e8dc5fc67dddd1a Reviewed-on: https://swiftshader-review.googlesource.com/3623Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 30 Jun, 2015 6 commits
-
-
Alexis Hetu authored
Change-Id: Ic8e80810ee6846b66543e6a5dbdae044fdd02a99 Reviewed-on: https://swiftshader-review.googlesource.com/3600Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
The pixel pack buffer was ignored, but should be used whenever it is set when doing a glReadPixels. When this is the case, pixels becomes an offset. From the GLES 3.0 spec, section 4.3.1, subsection "Placement in Pixel Pack Buffer or Client Memory": "If a pixel pack buffer is bound, data is an offset into the pixel pack buffer and the pixels are packed into the buffer relative to this offset; otherwise, data is a pointer to a block of client memory and the pixels are packed into the client memory relative to the pointer" WebGL conformance tests passed. Change-Id: I7539f1ce705cfd2072ed679815676c0b18887272 Reviewed-on: https://swiftshader-review.googlesource.com/3604Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
It was possible to have "count" larger than "maxCount" since "total" was incremented regardless of whether or not the shader was added to the "shaders" output argument. Simplified the function to fix it. Change-Id: I403e6c100580fb8f5f1c6fe170af1a796e936828 Reviewed-on: https://swiftshader-review.googlesource.com/3605Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Missing validation for mapped buffers and overlap was added to CopyBufferSubData. Change-Id: If1f3f9901f039f5737d41ca46d98ce4c188274d6 Reviewed-on: https://swiftshader-review.googlesource.com/3603Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
According to the OpenGL ES 3.0 spec (section 2.9.2 Creating Buffer Object Data Stores) "If data is NULL, then the contents of the buffer object’s data store are undefined." So the function should behave the same way, perform the same checks, but simply skip the copy. Change-Id: If49e37a8e836618389e105b5377ff183ac3e3107 Reviewed-on: https://swiftshader-review.googlesource.com/3601Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
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 1 commit
-
-
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>
-