- 10 Feb, 2016 1 commit
-
-
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>
-
- 01 Feb, 2016 2 commits
-
-
Alexis Hetu authored
This cl contains the necessary changes to make uniform buffers usable in shaders. A few things to note: - Uniform buffers can be set, but nothing will attempt to access them in this cl. - While the 'index' of uniforms is expressed in terms of registers, uniform buffer 'index' is expressed in bytes in both PixelProgram and VertexProgram. This is necessary because of packing which can potentially put some variables in the middle of registers. Technically, std140 always packs variables in multiples of byte4, but other future layouts may not, so using bytes as the unit is more future proof. - The above mentioned 'index' will have to be computed in OutputASM and extra operations will need to be added (to fetch a row from a row major matrix, for example). Change-Id: I636cc4bdc6fe90d6f5697e735f4288f48d18a75b Reviewed-on: https://swiftshader-review.googlesource.com/4151Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Register indices were only set for the first instance of the array when the uniform block array was present in both the fragment and vertex shaders, so this code takes care of the array case. Change-Id: I8a98470fedcc67bdc5edfd3b852470f5f911d610 Reviewed-on: https://swiftshader-review.googlesource.com/4630Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 28 Jan, 2016 2 commits
-
-
Nicolas Capens authored
Bug 26794307 Change-Id: I0aa175f091550d544a33503b602c191353e7a1c5 Reviewed-on: https://swiftshader-review.googlesource.com/4606Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 26794307 Change-Id: I66a440221435e63574c5da4204a9d2b00ece73f4 Reviewed-on: https://swiftshader-review.googlesource.com/4604Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 26 Jan, 2016 1 commit
-
-
Nicolas Capens authored
Change-Id: If557db7db89659e6c2b043b21e5712fb34eafd8d Reviewed-on: https://swiftshader-review.googlesource.com/4561Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 25 Jan, 2016 6 commits
-
-
Nicolas Capens authored
Change-Id: Ida83136a083642bd6cd651c4cb506723e8ac9a41 Reviewed-on: https://swiftshader-review.googlesource.com/4570Reviewed-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 22652760 Change-Id: I698ce910ee4302178d7235fa316aaa2b268e71a8 Reviewed-on: https://swiftshader-review.googlesource.com/4560Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 22652760 Change-Id: I50c6935bac91f586953b0dd2abd0d2a859468ee1 Reviewed-on: https://swiftshader-review.googlesource.com/4579Tested-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 22652760 Change-Id: I317275cd2c15012da3a859735409af07ea9b2923 Reviewed-on: https://swiftshader-review.googlesource.com/4559Reviewed-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 22652760 Change-Id: If6bf124c3218847ecc4af0ae16102452a6b344d9 Reviewed-on: https://swiftshader-review.googlesource.com/4558Tested-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 22652760 Change-Id: I48e9e1f3ff677429eff1aea2f80b1e384a537a14 Reviewed-on: https://swiftshader-review.googlesource.com/4557Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 15 Jan, 2016 9 commits
-
-
Nicolas Capens authored
Change-Id: I7da54053b3be31b4388dd9c0f4d89298e656bee2 Reviewed-on: https://swiftshader-review.googlesource.com/4556Tested-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: I99731b6697a4ae92b1d04c8a8d895a0cf19d580c Reviewed-on: https://swiftshader-review.googlesource.com/4545Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bool to int and int to bool also work for unsigned int. Change-Id: I31669d8754a718096381609d13c2e9668599efe5 Reviewed-on: https://swiftshader-review.googlesource.com/4070Reviewed-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: I9630093a14d0c1b2b6dc60ffb5866c7d2eaf4f02 Reviewed-on: https://swiftshader-review.googlesource.com/4552Tested-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: If7524c5245951ed87bcb8caacda2264db0875dad Reviewed-on: https://swiftshader-review.googlesource.com/4554Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Replaced a few instances of 224 and 256 that were actually used to represent FRAGMENT_UNIFORM_VECTORS and VERTEX_UNIFORM_VECTORS. This cl should not change any behavior. Change-Id: I4b82341f32223fcee559aaf70df2ee83c9936d11 Reviewed-on: https://swiftshader-review.googlesource.com/4547Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 22652760 Change-Id: If2b41c4d3b24f4b8a9d9dd805a9ab3ce724b7726 Reviewed-on: https://swiftshader-review.googlesource.com/4553Reviewed-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 22652760 Change-Id: I1a8ff978fdc7ad795e469218a931523d624e7cde Reviewed-on: https://swiftshader-review.googlesource.com/4546Tested-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: I8bc812cd6c25a60dc73abc2177e8eb4a3841af21 Reviewed-on: https://swiftshader-review.googlesource.com/4551Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 14 Jan, 2016 2 commits
-
-
Nicolas Capens authored
Change-Id: I3d4262ea4be0c7b1128b2ca410e985cc6f58c9c9 Reviewed-on: https://swiftshader-review.googlesource.com/1970Tested-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: If36ea6e74311f54bb4c2b0bc1b5b7ccd0e97d74b Reviewed-on: https://swiftshader-review.googlesource.com/4548Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-