- 21 Jul, 2015 2 commits
-
-
Alexis Hetu authored
- Added support for uniform blocks in OutputASM::declareUniform - Added basic implementation of Program::applyUniformBuffers() to be completed later on when uniform buffers are implemented Change-Id: I919b59d4557bb10bb302e6b6bd0ada79553ca8bb Reviewed-on: https://swiftshader-review.googlesource.com/3651Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
This cl splits PixelRoutine into 2 specialized classes: PixelProgram and PixelPipeline. In this cl: - Moved all specialized behavior of PixelRoutine into the PixelProgram and PixelPipeline classes. - Inverted hierarchical dependency between PixelRoutine and QuadRasterizer. QuadRasterizer is now the base class. - Added a check to PixelProcessor::routine() to either create a PixelPipeline object or a PixelProgram object. - Moved a few interpolation related utility functions from PixelRoutine down to QuadRasterizer. - Added Registers hierarchy. PixelProgram specific Registers and PixelPipeline specific Registers are now mutually exclusive. - Made the quad functions virtual - Added a few virtual functions (setBuiltins, ps, alphaTest, rasterOperation) for Program/Pipeline specific implementations Bug 20257503 Change-Id: I6abe536a5521d9842f757a8bbb52e3947e3c9250 Reviewed-on: https://swiftshader-review.googlesource.com/3634Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 19 Jul, 2015 1 commit
-
-
Nicolas Capens authored
Bug 15759123 Change-Id: I363524a191d319e03ce2b874cfc853c7330b684f Reviewed-on: https://swiftshader-review.googlesource.com/3735Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 17 Jul, 2015 5 commits
-
-
Nicolas Capens authored
Copied from old Shader::GetFunction(). Bug 22533227 Change-Id: I587a4112bc97f75c010b6f572f8f4388d5af9225 Reviewed-on: https://swiftshader-review.googlesource.com/3734Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 22533227 Change-Id: Idf969cd81fae9f5bc5f3da147ae84fe597d3afa7 Reviewed-on: https://swiftshader-review.googlesource.com/3733Tested-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 22533227 Change-Id: Ib1b17bcace85bc6204589a48c65f60c94ffbe5cc Reviewed-on: https://swiftshader-review.googlesource.com/3732Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 22533227 Change-Id: I7dd953eecb169cb471aa9c1830f91b06f8bcc7ac Reviewed-on: https://swiftshader-review.googlesource.com/3731Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 22533227 Change-Id: Ib669fcd6a644c79b3a9e8f5dcf7da278d75cefef Reviewed-on: https://swiftshader-review.googlesource.com/3730Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 16 Jul, 2015 9 commits
-
-
Alexis Hetu authored
Added implementation for querying GL_FRAMEBUFFER_ATTACHMENT_TEXTURE_LAYER in GetFramebufferAttachmentParameteriv. Change-Id: Ib25ba51bf68c9d979f80cc65ba7059366b5f1ae4 Reviewed-on: https://swiftshader-review.googlesource.com/3541Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Program now uses Attribute location. Change-Id: I005d64509e4b1e2dd977db38b6b2c41d6ba7ddef Reviewed-on: https://swiftshader-review.googlesource.com/3722Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
The spec for GetProgramiv didn't mention anything about PROGRAM_BINARY_LENGTH, but looking at the OpenGL ES 3.0 spec, section 2.11.4 - "Program Binaries", we have: "The number of bytes in the program binary can be queried by calling GetProgramiv with pname PROGRAM_BINARY_LENGTH" Change-Id: Idf652fec34fa1f3cce6cce0e7302ab8d47a6cf74 Reviewed-on: https://swiftshader-review.googlesource.com/3611Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
dEQP was expecting default buffer usage to be GL_STATIC_DRAW instead of GL_DYNAMIC_DRAW, so it was changed accordingly. Change-Id: I5c9e31fc0791955fd32333c1479e76fbc79951a1 Reviewed-on: https://swiftshader-review.googlesource.com/3631Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Some checks in Framebuffer related functions were still ES2 only. Made some modification to fix the checks for ES3. Change-Id: Iaef6133179ea830dd599a5d66bc9698032085569 Reviewed-on: https://swiftshader-review.googlesource.com/3690Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Fixed copy-paste error in FWIDTH function Change-Id: I7562aa29408987839334aa13c7461f69d8ae6a19 Reviewed-on: https://swiftshader-review.googlesource.com/3728Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
- Implemented proper VariableRegisterCount (we were using row count instead of column count to get the number of registers) and VariableRegisterSize. - Matrix to matrix copies now clear the correct rows of the destination matrix when needed - Added registerSize helper function to type to help clarify this for matrices. - Added missing member initializations in TType constructor Change-Id: Ic880815515c7d12ad12e44f1392aa6892caa953f Reviewed-on: https://swiftshader-review.googlesource.com/3718Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
The queries should round, rather than truncate, LODs to int. Bug 20724899 Change-Id: I86ddc724545abb80687eb5132cdf8ddd410ee2d1 Reviewed-on: https://swiftshader-review.googlesource.com/3638Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Some int/uint/array types weren't properly handled by the Program class yet, so the missing types were added. Change-Id: I487bbbdcbf798c7430535745386139632346013f Reviewed-on: https://swiftshader-review.googlesource.com/3610Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 10 Jul, 2015 2 commits
-
-
Greg Hartman authored
Change-Id: I43f1675a1c6059cc86eaf84ac768242cfc80b88f Reviewed-on: https://swiftshader-review.googlesource.com/3652Tested-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Greg Hartman authored
This was breaking the Android build and didn't appear to be used in the code. It was introduced with I0fe062ea826b73b2bdf28ad3ed6e72e51c576840 Change-Id: Ic2a00c3264263e5608903ee7764f9c8dd8fb2c2a Reviewed-on: https://swiftshader-review.googlesource.com/3662Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 09 Jul, 2015 1 commit
-
-
Maxime Grégoire authored
Bug 22375329 Change-Id: Id6684e33bf3cd37fce48e7607e6a65fe64309f72 Reviewed-on: https://swiftshader-review.googlesource.com/2764Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Maxime Grégoire <mgregoire@google.com>
-
- 08 Jul, 2015 10 commits
-
-
Alexis Hetu authored
Replaced values that matched with FRAGMENT_UNIFORM_VECTORS or VERTEX_UNIFORM_VECTORS where appropriate. Change-Id: I64a72b6f30a8a553ea44c268e757ee529cff59fd Reviewed-on: https://swiftshader-review.googlesource.com/3672Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
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 4 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>
-