- 08 Jul, 2015 9 commits
-
-
Alexis Hetu authored
The unary math related functions were already added to TParseContext, but a few sections in the parser hadn't been converted yet. Change-Id: Idbc96e6e91acce28310f391a50d219e39dfc185b Reviewed-on: https://swiftshader-review.googlesource.com/3668Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
The implementation of the length() function was already added to TParseContext::addFunctionCallOrMethod() in a previous cl, but it was still unused because addFunctionCallOrMethod() was always called with the 3rd argument as nullptr. This cl adds the missing code required to get the length function working. Change-Id: I3339ae8b60f5f577caa0a39f88c6ed0c626879b2 Reviewed-on: https://swiftshader-review.googlesource.com/3641Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Greg Hartman authored
Change-Id: I045c637eda7449baeeebc0b9b863e8a9af363ec6 Reviewed-on: https://swiftshader-review.googlesource.com/3660Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Greg Hartman <ghartman@google.com>
-
Greg Hartman authored
Bug 22321923 Change-Id: Ib32137a0ac940ab40d375e928e3334b50387c5d5 Reviewed-on: https://swiftshader-review.googlesource.com/3667Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Greg Hartman <ghartman@google.com>
-
Alexis Hetu authored
It should be possible to query the default parameters of a Sampler created with glGenSamplers, so checkSamplerAllocation() was added to make sure a created sampler was associated to a Sampler object where appropriate. I also cleaned up the API a little to share validation functions. Change-Id: I55d95c6663d41e2566b24eb76a431dd4b4da61e3 Reviewed-on: https://swiftshader-review.googlesource.com/3637Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Added support for the invariant keyword in the parser. Also made sure all in/out types were handled properly in OutputASM.cpp. Change-Id: I40f0bc9caf5bccc691aa60dfaa90bed5d1d7d238 Reviewed-on: https://swiftshader-review.googlesource.com/3663Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
TSourceLoc was defined as an int, but is meant to be used as a struct to carry all the information provided by the parser, so the conversion was made in this cl. Change-Id: I6015d11aafda96914ec7b2c37883ffbc963a08fe Reviewed-on: https://swiftshader-review.googlesource.com/3664Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
Alexis Hetu authored
- Replaced a few lines of codes in the parser by getNamedVariable - Deleted unused commented out code in the parser Change-Id: I34db0c971140a39cd91a32c05ebf866d5fca795b Reviewed-on: https://swiftshader-review.googlesource.com/3670Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Moved the ternary selection code to TParseContext where checks were added to make sure arrays and structs can't use it. Change-Id: If3c007820870276cdf540005e095d89d54949bc4 Reviewed-on: https://swiftshader-review.googlesource.com/3669Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 07 Jul, 2015 2 commits
-
-
Greg Hartman authored
Change-Id: I7ad7b5db84e2c33b0340943f7f2b13403e777383 Reviewed-on: https://swiftshader-review.googlesource.com/3587Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Greg Hartman <ghartman@google.com>
-
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 4 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>
-