- 22 Feb, 2016 1 commit
-
-
Alexis Hetu authored
Previously, it was allowed for multiple attributes to share a location or overlap, but in ES3.0, it should cause a linking error. Passes WebGL conformance tests. Change-Id: I1c65b0cb31a04680a25ac54d20f6ee0d869251b9 Reviewed-on: https://swiftshader-review.googlesource.com/4877Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 18 Feb, 2016 4 commits
-
-
Alexis Hetu authored
In OpenGL ES 3.0, the default framebuffer should use GL_FRAMEBUFFER_DEFAULT instead of GL_RENDERBUFFER for default buffer. I also added the Framebuffer::IsRenderbuffer() utility function to make the transition easier. Change-Id: I041e610738a4a656555ae7fa7ba41ba68b1fe9ea Reviewed-on: https://swiftshader-review.googlesource.com/4763Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Unified and fixed packing and unpacking computations. Change-Id: I1ea2bcf28945a9f105152a6836f11bcb2859750c Reviewed-on: https://swiftshader-review.googlesource.com/4715Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
The original code allowed Renderbuffer objects to select layer and level at construction time, but after that point these parameters were not modifiable. This cl adds the code to modify layer and/or level when requested. Change-Id: Ic694904f83b794879110bd0505a36a011d79a2a5 Reviewed-on: https://swiftshader-review.googlesource.com/4765Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
The 2D Array texture binding query was stll using TEXTURE_3D instead of using TEXTURE_2D_ARRAY. Change-Id: Ib55007995c336e72aaae7fd62918f232a5c1c3fc Reviewed-on: https://swiftshader-review.googlesource.com/4744Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 17 Feb, 2016 2 commits
-
-
Alexis Hetu authored
A few numbers didn't match between the default value entered in Context.cpp and the constants from Config.hpp. A few default values were also erroneously larger than required. Constants were centralized in Config.hpp to solve the issue. Change-Id: I60e5d93c43ce61e125c261bdf07ce50e7130a296 Reviewed-on: https://swiftshader-review.googlesource.com/4742Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 27166315 Change-Id: Ia9774e6560b326ca963830c53e030487c239164a Reviewed-on: https://swiftshader-review.googlesource.com/4770Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 12 Feb, 2016 1 commit
-
-
Nicolas Capens authored
Bug 27157109 Change-Id: Ie477455d0b59a8432224f3956e2ba7a1140182af Reviewed-on: https://swiftshader-review.googlesource.com/4767Reviewed-by:
Greg Hartman <ghartman@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 10 Feb, 2016 15 commits
-
-
Alexis Hetu authored
- Quite a few buffers weren't being checked properly when a buffer was getting detached from the current context. - Only current objects (TransformFeedback, VertexArray) should be affected by this. Change-Id: I621c9fa45a951db5634616884cf57d5cb21d9bda Reviewed-on: https://swiftshader-review.googlesource.com/4748Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
As long as there's no floating point arithmetic, 32 bit integer types are computationally equivalent to 32 bit floating point. Change-Id: I5ab19da440f52617a9bc64dff6fcaf8eff796aeb Reviewed-on: https://swiftshader-review.googlesource.com/4717Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Mask queries could return negative values when only positive values are accepted, so a clamp was added to prevent returning negative values. Change-Id: Ib151573fff54604567b83736163b8fe748c749f8 Reviewed-on: https://swiftshader-review.googlesource.com/4743Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Added immutable levels info to Texture and added the query. Change-Id: I900a3c433dcc63b8113b1f623da3518c00680e16 Reviewed-on: https://swiftshader-review.googlesource.com/4751Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Specifying a read buffer or draw buffers was set on the context instead of being set on the Framebuffer object, which led to multiple Framebuffer objects wrongly sharing this state. Change-Id: I9d137c52f50e58a48b95f7ed9a44b4dad275e710 Reviewed-on: https://swiftshader-review.googlesource.com/4745Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Added missing implementations for binding/start/size related queries for TransformFeedback objects. Change-Id: Iebfebdc840764755a74d4a3753f72eceb1e6c86e Reviewed-on: https://swiftshader-review.googlesource.com/4747Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Implemented version query and removed a few unnecessary UNIMPLEMENTED) calls. Change-Id: I29bb53a8f8083a1b6fb091916dd156f47aac920c Reviewed-on: https://swiftshader-review.googlesource.com/4754Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Sampler objects already exist, only the query was missing. Change-Id: Iea4a65ee4af149a33b262eba4fc0d6256775d1e1 Reviewed-on: https://swiftshader-review.googlesource.com/4746Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Removed a few unnecessary/bad instructions from PixelProgram and VertexProgram. Also added the proper implementation for printing out a shader instruction that includes indexing an array with a uniform. Change-Id: Icd37dd4f70419874bb65c54438409b8b9c3ee836 Reviewed-on: https://swiftshader-review.googlesource.com/4753Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Implemented binding/size/start related queries for uniform buffers. Change-Id: I9d36c92201a7f0df86b1d882ca6d9f04b372bad6 Reviewed-on: https://swiftshader-review.googlesource.com/4750Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
A few things were missing in internal format queries - GL_RGB and GL_RGBA are renderable formats - Integer types have no multisampling - If bufSize is 0, we should not write to the params output Change-Id: If6ba2f28b368e780eca8e89ef033deacf9cc523b Reviewed-on: https://swiftshader-review.googlesource.com/4752Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Added/fixed missing/bad storage texture types. Change-Id: I0f489fbd21569114fe30d7291fb718de09cd8974 Reviewed-on: https://swiftshader-review.googlesource.com/4749Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I95aff944b1d38c297b3ece475717db4c77b3274d Reviewed-on: https://swiftshader-review.googlesource.com/4736Tested-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 26776258 Change-Id: I326e76d2650b3992835d74baea159b13f14b2e3e Reviewed-on: https://swiftshader-review.googlesource.com/4720Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
OpenGL ES 3.0 entry functions are exported in the exports.map version script, but the source file defining them was not being compiled (ES3 support is still disabled). Change-Id: I5e42082304beb2b37de2bcc7ffcf3b2fc65ecc7d Reviewed-on: https://swiftshader-review.googlesource.com/4732Reviewed-by:
Keun Soo Yim <yim@google.com> Reviewed-by:
Greg Hartman <ghartman@google.com> Tested-by:
Keun Soo Yim <yim@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 09 Feb, 2016 1 commit
-
-
Nicolas Capens authored
Timestamp macros make the build unreproducible. This is of particular concern to Android, but since LLVM only uses them for command line operations which we don't need at all, they can be disabled on all platforms. Bug 27079084 Change-Id: I2c4c3dcd06feb3a64936e70ca1535f5a12816e95 Reviewed-on: https://swiftshader-review.googlesource.com/4730Reviewed-by:
Keun Soo Yim <yim@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 08 Feb, 2016 8 commits
-
-
Nicolas Capens authored
Unify address() and addressW() by introducing a new addressing mode. Change-Id: I09f9cbbe7800cfd5ef737322d680327aeddd27f1 Reviewed-on: https://swiftshader-review.googlesource.com/4714Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
2D array textures use 2D LOD calculations, not 3D. Change-Id: I0ce834bc4afb63dfeba3d9662105ffdaa07028da Reviewed-on: https://swiftshader-review.googlesource.com/4716Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
2D array textures aren't supposed to filter between layers and the computation used in the filtering code is meant to work with 3D textures, not 2D array textures. The 2D array textures now use the 2D texture path instead of the 3D texture path to solve this issue. Change-Id: Iea8fcfe67cce7ae70e39081af07e67fa59b268ff Reviewed-on: https://swiftshader-review.googlesource.com/4690Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
- Only unbind (orphan and release) images when the texture destructs. - Let images hold just one reference to the parent texture. - Check if textures and images only reference each other and garbage collect. Bug 26851951 Change-Id: I2b0bcc283bf545d948e91288c531eac7cc14d122 Reviewed-on: https://swiftshader-review.googlesource.com/4711Tested-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 26851951 Change-Id: I5494d61927eb4c1faff320aa7cd6cebe81800f29 Reviewed-on: https://swiftshader-review.googlesource.com/4712Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Customize construction for each use case. Bug 26851951 Change-Id: Ic10166bbfeaf11e800fec2a6470446b76e49b825 Reviewed-on: https://swiftshader-review.googlesource.com/4710Reviewed-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 26851951 Change-Id: I5b594bdd34e6fa1074d5439ee2c09f6731839dee Reviewed-on: https://swiftshader-review.googlesource.com/4534Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I0660f69ea463a117d950e85bc94facb8292a069f Reviewed-on: https://swiftshader-review.googlesource.com/4713Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 06 Feb, 2016 1 commit
-
-
Alexis Hetu authored
Vertex array objects are not allocated when generated, but only when bound, so it's legal to have a null vertex array object internally. Change-Id: Ib28a388939e285425c09cfbc9f4efef3f4a8cead Reviewed-on: https://swiftshader-review.googlesource.com/4700Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 05 Feb, 2016 2 commits
-
-
Nicolas Capens authored
The name for google image is "google_sdk_x86" on older Android versions. Change-Id: If1e9cb368284b91787badf329e558af5d0b9042c Reviewed-on: https://swiftshader-review.googlesource.com/4692Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I8215fabe92d11f0f28cae9ffadd8c48a3fbf1f27 Reviewed-on: https://swiftshader-review.googlesource.com/3890Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 04 Feb, 2016 2 commits
-
-
Alexis Hetu authored
There was some confusion between buffer mapping and size and offset buffer binding arguments, which are distinct, but were represented by the same Buffer class members. Added OffsetBindingPointer to solve the issue and removed setOffset/setSize from the Buffer class, which should not have existed in the first place (only the mapRange/unmap functions should be allowed to modify these values, for now). Change-Id: Iacecd17cfb90d0a229d9edf62a463c8acf31f07a Reviewed-on: https://swiftshader-review.googlesource.com/4590Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
A few aspects of block declaration are improved upon here: - Block definitions are computed and stored for later use. The data stored are the block member types and a map to convert from register offsets, based on the internal memory layout, to the std140 layout. - Declaration of block members is possible. When a block member is declared prior to the entire block being declared, OutputASM::declareUniform() will first declare the whole block and return the index of the block member. If the block member is part of an already defined block, the function declares no new variables and returns the block member's register index. Change-Id: If1368bc8de20a0f86169361d76858c3f3e34bb07 Reviewed-on: https://swiftshader-review.googlesource.com/4632Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 03 Feb, 2016 1 commit
-
-
Greg Hartman authored
Bug: 26822256 Change-Id: I2d974e1170847786369797d8e9b10ba4ad3663e0 Reviewed-on: https://swiftshader-review.googlesource.com/4660Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Greg Hartman <ghartman@google.com>
-
- 02 Feb, 2016 2 commits
-
-
Alexis Hetu authored
Some calls to the argument() function were made twice because the emit() function didn't know what index to use for each individual input. I added the function arguments to the emit() function in order to solve that. WebGL conformance tests pass. Change-Id: I548b72cadf7247afd103b6be2ddfeaf39a995025 Reviewed-on: https://swiftshader-review.googlesource.com/4575Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
- The rowMajor qualifier should only be set for matrices - Shared and std140 layouts are always considered active - Fixed registerSize() for uniform blocks Change-Id: Id0ccd4f1f1c3342915643d87e166234e61b83f4f Reviewed-on: https://swiftshader-review.googlesource.com/4631Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-