- 19 Apr, 2016 1 commit
-
-
John Sheu authored
Change-Id: If2f96b4cc1c09cd28771740f09be5f84875033ab Reviewed-on: https://swiftshader-review.googlesource.com/5091Reviewed-by:
Nicolas Capens <capn@google.com> Tested-by:
Nicolas Capens <capn@google.com>
-
- 18 Apr, 2016 9 commits
-
-
Nicolas Capens authored
Bug 19353282 Change-Id: I4a1782c2f1e9ae52b731ef447e97c353cc41044e Reviewed-on: https://swiftshader-review.googlesource.com/5123Tested-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 19353282 Change-Id: I6d1022c42a3347b8deb01af15078769d794050cb Reviewed-on: https://swiftshader-review.googlesource.com/5146Tested-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 19353282 Change-Id: I4319ad1836de36cc4b91b04ed226f925f82013ee Reviewed-on: https://swiftshader-review.googlesource.com/5145Reviewed-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 19353282 Change-Id: I4e99589477de32bb8004feec673e1dbddb675047 Reviewed-on: https://swiftshader-review.googlesource.com/5144Reviewed-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 19353282 Change-Id: If2eb9f2d78c3a44b720bb1f223711411b576d710 Reviewed-on: https://swiftshader-review.googlesource.com/5140Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
A cl recently introduced the XRB32F internal format, but while it fixed some cases where this format is used as a rendertarget, it seems to have caused regressions in sampling. A new case has been added in the sampling code to handle this new format properly. Change-Id: I7aa537a410d7b68c47771a72dec487e4b4c4e8be Reviewed-on: https://swiftshader-review.googlesource.com/5147Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
UInt <-> Int conversions are noop (bitwise), so it's allowed to simply perform a move operation in that case. Change-Id: I2078b2cf2933f5ced25b8ea81933e543a017faaf Reviewed-on: https://swiftshader-review.googlesource.com/5143Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
BGRA8 texture support also applies to texture copy operations. Change-Id: Ie3920585904c67ddf1b5b308eff60bc83f9e195b Reviewed-on: https://swiftshader-review.googlesource.com/5142Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Fixed a copy-paste error where only half the required number of bytes were loaded. Change-Id: I43ea2e1b5368137e19fb6bb20c03b5c9ca10ba3b Reviewed-on: https://swiftshader-review.googlesource.com/5141Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 14 Apr, 2016 9 commits
-
-
Alexis Hetu authored
Transform feedback requires a bit of extra data to write properly into the transform feedback buffers. First it needs to know where in the buffer to read, which can be derived from the vertex number provided in vertexStart. Also, since SwiftShader always processes 3 vertices per primitive, regardless of the primitive type, transform feedback needs to know which vertices to use, and that information can be derived from verticesPerPrimitive. Change-Id: I820d99949d7b2955794cc143ffb178e76dd418d7 Reviewed-on: https://swiftshader-review.googlesource.com/5062Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Added code to properly render to alphaless floating point formats. Change-Id: I2e226fb787d8456f61a2946fb9c0d8a9dbb58243 Reviewed-on: https://swiftshader-review.googlesource.com/5128Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: I49c0f7b78a131c0d78c2cfb207bb3019b2b93a15 Reviewed-on: https://swiftshader-review.googlesource.com/5129Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Half-float formats are renderable due to GL_EXT_color_buffer_half_float. Change-Id: I4c3716f578cb4a5dd32f2b22265df4263e9834cc Reviewed-on: https://swiftshader-review.googlesource.com/5127Tested-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 2.0 expects GL_INVALID_OPERATION when querying default framebuffer attachment parameters. Change-Id: Ie0e0c35ad835e06b16c7aaaea48f7ec7eb64c663 Reviewed-on: https://swiftshader-review.googlesource.com/5124Tested-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: Ibd2c6ae673be34e7a6e701454261f25658d1df22 Reviewed-on: https://swiftshader-review.googlesource.com/5122Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
GL_INVALID_ENUM is for enum values that are never valid for the function. GL_INVALID_OPERATION is expected for enum combinations that are not valid. Change-Id: I43a6cd169303420a680e4cab15683605a8684517 Reviewed-on: https://swiftshader-review.googlesource.com/5094Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Early out checks for zero size were skipping the validation. Change-Id: I1d8173146117be5a7a3330cf6eae46c2ef8231ff Reviewed-on: https://swiftshader-review.googlesource.com/5093Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
GLSL ES 1.0 specifies that "a function body has a scope nested inside the function’s definition". For GLSL ES 3.0, they form a single scope. Both specs use the compound_statement_no_new_scope rule. This change respects that while supporting both behaviors. It does not impact legacy content since it makes things more permissive. Change-Id: Ica40fbf4d24d441ca2288fe5d43c288161e16b89 Reviewed-on: https://swiftshader-review.googlesource.com/5055Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 13 Apr, 2016 2 commits
-
-
Alexis Hetu authored
Added floating point formats to validateColorBufferFormat, which is used by glCopyTexImage2D, since it was a missing part of the previously added floating point extensions. From the extension spec: https://www.khronos.org/registry/gles/extensions/EXT/EXT_color_buffer_half_float.txt "9. Should CopyTex[Sub]Image be supported for floating-point formats? [...] Yes." Change-Id: Ie14d8afd352b004e8a2400cfef16facdeab94e33 Reviewed-on: https://swiftshader-review.googlesource.com/5110Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
pixelProgress[cluster].processedPrimitives could have been cleared between the moment where it has been written and where it is read, so I added a local variable to prevent this issue. Change-Id: I495ed5c9e845c276890d6193b2fe4b8208f993d1 Reviewed-on: https://swiftshader-review.googlesource.com/5061Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 12 Apr, 2016 2 commits
-
-
Alexis Hetu authored
Added variables and function calls to lock/unlock transform feedback data used for reading the selected transform feedback varying variables out of the vertex shader. Also fixed uniform buffer unlocking potential race condition. Change-Id: I98790fc36fdf8674506d924b2f21b3e68892811a Reviewed-on: https://swiftshader-review.googlesource.com/5060Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
transformFeedbackEnabled represents flags, not a single value, so it should not have been of type bool. Change-Id: I723660a84e0ecfd42d361511d8b445d40d6d31a8 Reviewed-on: https://swiftshader-review.googlesource.com/5063Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 11 Apr, 2016 6 commits
-
-
Nicolas Capens authored
Change-Id: I9ac2051f5cc8703e804b86c0006bb1b9fe48f521 Reviewed-on: https://swiftshader-review.googlesource.com/5082Tested-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: If3b61ad65f1f1d6687890bd8715b2a534c78a353 Reviewed-on: https://swiftshader-review.googlesource.com/5081Tested-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: I68322e6626953023c3af97325f085bc33ff1b7c6 Reviewed-on: https://swiftshader-review.googlesource.com/5080Tested-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: I38ccac08347592356e0225b6eb90517e20394909 Reviewed-on: https://swiftshader-review.googlesource.com/5079Tested-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: If17c2429d38158663c2436e374691a460e3d588c Reviewed-on: https://swiftshader-review.googlesource.com/5064Tested-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: I7dd1e6db9a4cee64cb10fb27373d77038b2af63e Reviewed-on: https://swiftshader-review.googlesource.com/5078Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 08 Apr, 2016 1 commit
-
-
Alexis Hetu authored
Uniform blocks members, when unnamed blocks are used, are used in glsl only with the member's name, without any reference to the block itself. When this happens, we still need the whole block to be allocated as one contiguous structure in the registers. To do that, whenever a member of an unnamed block is first used, the whole block is allocated. Also, whenever any member of an unnamed block attempts to allocate a register, it first verifies if the parent block has already been allocated. So this means that both allocation and lookup must be done through the parent block when dealing with unnamed block members. Change-Id: Ib11eaa1ee052d32252f32997eb5f650a9765533d Reviewed-on: https://swiftshader-review.googlesource.com/5059Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 07 Apr, 2016 2 commits
-
-
Alexis Hetu authored
Implementation for packHalf2x16, unpackHalf2x16 intrinsic functions. Change-Id: I55212f8bc2ecd30e0108858d74117c3cf60733ed Reviewed-on: https://swiftshader-review.googlesource.com/5056Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
When data is packed into uniform blocks, some data isn't formatted in a way that fits how data is usually represented, which is the case for booleans and row major matrices. In these 2 cases, the variables are unpacked into temporaries before being used. Booleans can be any integer value and any non-zero value represents "true", so the value in the uniform buffer has to go through an int to bool conversion before being used. For row major matrices, a given register of that matrix has to be transposed into a temporary before being used. Change-Id: I0e001ceff2ce9be9a3570171e184586afc48c02d Reviewed-on: https://swiftshader-review.googlesource.com/5040Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 06 Apr, 2016 6 commits
-
-
Alexis Hetu authored
libGL was broken (probably by the recent namespace change, not sure) Change-Id: I27e461f82a652cb8f9a646ab1d4091195efc454b Reviewed-on: https://swiftshader-review.googlesource.com/5054Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
UniformBufferBinding was used for both uniform buffers and transform feedback buffers, so the uniform buffer specific name no longer made sense. Change-Id: I36a5b774e780460fa090c6c611cb8cb475ef2ced Reviewed-on: https://swiftshader-review.googlesource.com/5042Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Bug 25351344 Change-Id: Iaf0ce657a3a98c9b70902240340ed5f3f8076281 Reviewed-on: https://swiftshader-review.googlesource.com/4769Tested-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: I9b3977959aea8bd2711ebd94e06c0e09376d4d6e Reviewed-on: https://swiftshader-review.googlesource.com/4768Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Implementation for packSnorm2x16, unpackSnorm2x16, packUnorm2x16 and unpackUnorm2x16 intrinsic functions. Change-Id: I6b9e2584c1aaad8011f026c217d8ad3f72e9ba45 Reviewed-on: https://swiftshader-review.googlesource.com/5053Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Alexis Hetu authored
Similarly to what had been done for uniform buffers, transform feedback buffers require locking/unlocking functions so that the Renderer can access these resources. Change-Id: I909ccda4f30534290ebd4a575c082b5475786080 Reviewed-on: https://swiftshader-review.googlesource.com/5041Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
- 05 Apr, 2016 2 commits
-
-
Nicolas Capens authored
The scaling factors ensure that the components are rounded correctly even after alpha blending, which may multiply colors by colors. Bug 24332884 Change-Id: Ib75602e89996b2fd1a319a132a681295fb2a18a6 Reviewed-on: https://swiftshader-review.googlesource.com/5048Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-
Nicolas Capens authored
Change-Id: Ia94eb950d8d3ec4562f9f2e57d8d7ba27a41d16c Reviewed-on: https://swiftshader-review.googlesource.com/5044Tested-by:
Nicolas Capens <capn@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <capn@google.com>
-