- 03 Sep, 2015 4 commits
-
-
Nicolas Capens authored
Change-Id: I012bb669444e28f844c5571ff639b31dd1a35e1d Reviewed-on: https://swiftshader-review.googlesource.com/3950Reviewed-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: Id2c07064a68158d3a4d57974244feae1c15e2fa1 Reviewed-on: https://swiftshader-review.googlesource.com/3940Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Note that no decoding functionality is added here. This cl merely acknowledges textures of the ETC2, EAC and ASTC format by handling their related enums in SwiftShader, and the byte data is then allowed to be passed down all the way to the Surface object, where the decoding code will be added. Also note that this cl does not add the extensions strings required for ASTC support, so ASTC is still unsupported after this cl. Change-Id: I1d8aed0fb64b0d4c72846e87410750d1e485c46b Reviewed-on: https://swiftshader-review.googlesource.com/3938Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Setting a multisampling values of 0 or 1 are apparently 2 different cases, so I tried removing the even number check to fix this. It didn't break any tests, but I'm not sure how well this is covered by the tests. Change-Id: I0e7de9b153288f0c07bde9a2f104ea1d2bf230ac Reviewed-on: https://swiftshader-review.googlesource.com/3622Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 02 Sep, 2015 2 commits
-
-
Nicolas Capens authored
Bug 21572252 Change-Id: Iaf54b4d960dbc243c40f981e1c73c199481e2d28 Reviewed-on: https://swiftshader-review.googlesource.com/3930Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 21572252 Change-Id: I0c5aedf4fec7238544c1d716f65f0fd91cd59b57 Reviewed-on: https://swiftshader-review.googlesource.com/3937Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 31 Aug, 2015 1 commit
-
-
Alexis Hetu authored
This cl enables true integer support in glsl shaders. It still uses floating point registers to store all registers, regardless of the type, so integer and unsigned integer variables are simply reinterpreted as integers or unsigned integers and used as such by the appropriate instructions. Change-Id: If62213c917b4b0c907e58db9cd36944dd198beaa Reviewed-on: https://swiftshader-review.googlesource.com/3910Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 28 Aug, 2015 7 commits
-
-
Alexis Hetu authored
The new opcodes related to true int and uint support in glsl shader are now handled properly in PixelProgram and VertexProgram. Change-Id: I62565844f24708b4bd89dd99bbf971b55495c5da Reviewed-on: https://swiftshader-review.googlesource.com/3932Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 23041720 Change-Id: I9f6bed0a3d239a0adde9cc4e90cc368f078f3662 Reviewed-on: https://swiftshader-review.googlesource.com/3902Reviewed-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: I8be27042263ae80da3e01dce6c84dcf43645a232 Reviewed-on: https://swiftshader-review.googlesource.com/3911Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Adding the proper #include <limits.h> for Linux when using INT_MAX and/or UINT_MAX. Fixed ShaderCore.cpp and preemptively fixed libGLESv3.cpp. Change-Id: Iedd445157f3de8c08394e6d2c9f99539eb123845 Reviewed-on: https://swiftshader-review.googlesource.com/3933Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
- Removed float <-> int bit conversion functions, as these will not be needed if everything is stored as float. - Added ineg for the minus (-) sign in from of a value. - Added f2i/i2f/f2u/u2f for float <-> int conversions - Added b2i/i2b/b2u/u2b for bool <-> int conversions - Added iadd, isub, imul, imad, [iu]div, [iu]mod, [iu]min, [iu]max for these basic operations as integer operations. - Added left and right shifts - Added ucmp to compare unsigned values - Modified or/xor/and to support vectors instead of only scalars. - Added vector equality comparison functions Change-Id: I0f138e3707242ec0fffc1c12b95064ddc98f0087 Reviewed-on: https://swiftshader-review.googlesource.com/3888Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Opcodes for soon to be added integer operations such as: - Conversions to/from float - Negate - Comparison - Add, Sub, Mul, Div, Mod - Left Shift, Right Shift - Min, Max Change-Id: I16af0423fdb210a558ad293e0e043176bde1c9ee Reviewed-on: https://swiftshader-review.googlesource.com/3889Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Simple fix that replaces width by pitch where needed to avoid misalignment due to the difference between pitch and width in npot textures. Change-Id: I7acddc28fae21dddf870a6ef80ac7984cfaf8e0f Reviewed-on: https://swiftshader-review.googlesource.com/3931Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 25 Aug, 2015 2 commits
-
-
Alexis Hetu authored
Bit shifts compilation was failing when the types were a mismatch, but shifting a uint by an int (or vice versa) is allowed, so types may not match, and it's fine, as long as both are integer types. Change-Id: I86c52a572625b1d09803b0a8b887a63756544101 Reviewed-on: https://swiftshader-review.googlesource.com/3887Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Very few operations were missing in Nucleus for integer types support, but there were a few nonetheless, so Int4 and UInt4 now have new operators: divide, modulo, right shift (from non constant) and left shift (from non constant). These were simply un-commented out as they were already there, just commented out. Change-Id: I4c124c9297cd4d3d755c37f11168a43dcfeee290 Reviewed-on: https://swiftshader-review.googlesource.com/3886Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 20 Aug, 2015 2 commits
-
-
Nicolas Capens authored
Bug 23017372 Change-Id: I9764e558cdf602ecaf2a8c644fd5e444216b1568 Reviewed-on: https://swiftshader-review.googlesource.com/3860Reviewed-by:
Ping-Hao Wu <pinghao@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 23017372 Change-Id: Ie29ca3f67c79b0cb707dda216c256723d3721f28 Reviewed-on: https://swiftshader-review.googlesource.com/3861Reviewed-by:
Ping-Hao Wu <pinghao@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 19 Aug, 2015 1 commit
-
-
Nicolas Capens authored
The glDrawTex() implementation intends to use vertex array pointers, so set the array buffer to null to prevent it from taking precedence. Also save/restore projection and modelview matrices. Bug 23021204 Change-Id: I6b3e59d737a9b75180e6f03e9a686871640f7edd Reviewed-on: https://swiftshader-review.googlesource.com/3880Tested-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 11 Aug, 2015 2 commits
-
-
Nicolas Capens authored
Bug 23073037 Change-Id: I7da215ceff23f9a5c8188d3566a7c478b9489117 Reviewed-on: https://swiftshader-review.googlesource.com/3841Reviewed-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 23073037 Change-Id: I47d5a7d80dc48dffae0014fbf619810290c30628 Reviewed-on: https://swiftshader-review.googlesource.com/3840Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Greg Hartman <ghartman@google.com> Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 10 Aug, 2015 3 commits
-
-
Alexis Hetu authored
Changed UniformBlockArray so that it stores pointers to UniformBlock objects and adapted the code. Also reverted a change that had removed constness from some members of the UniformBlock class. Bug 22986647 Change-Id: I677a4b2e92da5849e4387e3802dfdfa36dc6b0a4 Reviewed-on: https://swiftshader-review.googlesource.com/3830Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
Alexis Hetu authored
According to a comment that was added after the cl was landed, depth and stencil layer queries are valid, so support for it was added. Here's a link to the original cl: https://swiftshader-review.googlesource.com/#/c/3541 Change-Id: Ib2eb50fb8cea6537da53bf45b5c7afa1f1a7b61b Reviewed-on: https://swiftshader-review.googlesource.com/3751Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Id3022059b3d5c21e5c78c668e21fddf569d920ef Reviewed-on: https://swiftshader-review.googlesource.com/3760Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 09 Aug, 2015 1 commit
-
-
Nicolas Capens authored
Bug 21499847 Change-Id: I245a624cad7c47af9d93844d4ae272c873b42008 Reviewed-on: https://swiftshader-review.googlesource.com/3820Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 06 Aug, 2015 14 commits
-
-
Nicolas Capens authored
Change-Id: I40f9ad720bdbd93c44be8fb991dfbf055a3eceba Reviewed-on: https://swiftshader-review.googlesource.com/3803Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ibfdf4366920c9b0de1b334b91c4acfcae5d94adf Reviewed-on: https://swiftshader-review.googlesource.com/3791Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I731bb641e00ba9ac880fdb9f721af24906b4850f Reviewed-on: https://swiftshader-review.googlesource.com/3802Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I7a156a33a6021bc871a902a2b9d050eeaf166fe9 Reviewed-on: https://swiftshader-review.googlesource.com/3801Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I54c54838b7140023d902d5cb615eb8509eb6e23a Reviewed-on: https://swiftshader-review.googlesource.com/3800Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I4858980fc32df435ffc0fc0917905116bea54aa8 Reviewed-on: https://swiftshader-review.googlesource.com/3790Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I03fabec6a92ef058aa2968418755aca079598cfe Reviewed-on: https://swiftshader-review.googlesource.com/3781Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ib041b2c412ea9db7a951e4eea24b7f27d8621cd0 Reviewed-on: https://swiftshader-review.googlesource.com/3780Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ied1be6434a356ec7315df9d728dc424961f44fd0 Reviewed-on: https://swiftshader-review.googlesource.com/3770Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ie5552f7b743ac488a10ef86042088181aa5b797a Reviewed-on: https://swiftshader-review.googlesource.com/3763Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I8c683a783f0a7f8a82206de77ae9d139f4b1bb10 Reviewed-on: https://swiftshader-review.googlesource.com/3762Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ie3caee1128c8227397a74378fcefdf9e128fc6bf Reviewed-on: https://swiftshader-review.googlesource.com/3761Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Greg Hartman authored
Change-Id: Ifd5f0bcc466f0ca7815f92285fa8bbd2d3ae2d8d Reviewed-on: https://swiftshader-review.googlesource.com/3810Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
Greg Hartman authored
This is needed because the object is included by value in STL containers. Change-Id: I4008aa3b733bdfc6c045a7622a0e40d7eb61b0bf Reviewed-on: https://swiftshader-review.googlesource.com/3811Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 23 Jul, 2015 1 commit
-
-
Alexis Hetu authored
- Added an actual offset, in registers, to the Uniform structure to take into account that types can have different register sizes. - Fixed the array check in OutputASM::declareUniform() so that it doesn't make an array of blocks when declaring a member as an array in the default uniform block. - Fixed arrayStride and matrixStride in the BlockInfo constructor. - Fixed memberUniformIndexes to use uniform index instead of register index. Change-Id: Id8ba23b5fef71c772bb45a45bb897ca5e2fae385 Reviewed-on: https://swiftshader-review.googlesource.com/3750Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-