478dd9a470bc45758a9400af6b2896c2f3d4abf6 |
|
02-May-2016 |
Alexis Hetu <sugoi@google.com> |
Switch implementation Implemented switch/case for glsl in OpenGL ES 3.0. For simplicity, it is implemented as a loop without a condition, so break statements work properly like so: begin switch if(...) // 1st case ... else if(...) // other cases ... else // default case ... end switch // Anchor point for break statements All related dEQP tests pass, except 7 tests where vertex shaders contain a switch or a loop within another switch. These 7 failures have only about 5% of bad pixel and seem to be related to an issue with int(floor(...)), since the equivalent tests inside the fragment shader pass. KNOWN ISSUE: If a switch is within a loop and one of the cases contains a "continue" statement, this will not be handled correctly at the moment. There are no dEQP tests for this at the moment, AFAIK. Change-Id: I3ba34ab06a759d07e8520f6a87d75036a5cdaef5 Reviewed-on: https://swiftshader-review.googlesource.com/5272 Tested-by: Alexis Hétu <sugoi@google.com> Reviewed-by: Nicolas Capens <capn@google.com>
/external/swiftshader/src/OpenGL/compiler/IntermTraverse.cpp
|
d999309b36cb3dceadd38217b322f0e96a06b202 |
|
07-May-2016 |
Nicolas Capens <capn@google.com> |
Apply the Apache 2.0 license. Change-Id: I4a7aeefedcd2d891093520d5a10ebefadcddb5be Reviewed-on: https://swiftshader-review.googlesource.com/5320 Reviewed-by: Nicolas Capens <capn@google.com> Tested-by: Nicolas Capens <capn@google.com>
/external/swiftshader/src/OpenGL/compiler/IntermTraverse.cpp
|
76a343af4ea1f781a56fec006b5fe67a5615d5f8 |
|
04-Jun-2015 |
Alexis Hetu <sugoi@google.com> |
Adding switch case default keywords This adds switch/case keywords to glsl. This makes the shaders that include these keywords compile, but they don't run properly yet, partly because the "break" statement only handles loops currently. Change-Id: I1f52b445e1124ed3931843c46e27ecc1d9ce3d11 Reviewed-on: https://swiftshader-review.googlesource.com/3400 Reviewed-by: Nicolas Capens <capn@google.com> Tested-by: Alexis Hétu <sugoi@google.com>
/external/swiftshader/src/OpenGL/compiler/IntermTraverse.cpp
|
cc863da574ed5079b055574127fe5788a9a0fc33 |
|
21-Jan-2015 |
Nicolas Capens <capn@google.com> |
Remove the Radiance compiler copy and use OpenGL's instead. Bug 18591036 Change-Id: I17158acfa126490e28076052e5937d1deafd96c1 Reviewed-on: https://swiftshader-review.googlesource.com/1691 Reviewed-by: Nicolas Capens <capn@google.com> Tested-by: Nicolas Capens <capn@google.com>
/external/swiftshader/src/OpenGL/compiler/IntermTraverse.cpp
|
e8321394237fa04e1a3f066d5b96025f48c36dfc |
|
03-Nov-2014 |
Nicolas Capens <capn@google.com> |
Rename the GLES2 folder to OpenGL. BUG=18218488 Change-Id: I162a3a80a8e098a2a52b02ea56d746074dfb938d Reviewed-on: https://swiftshader-review.googlesource.com/1320 Reviewed-by: Nicolas Capens <nicolascapens@google.com> Tested-by: Nicolas Capens <nicolascapens@google.com>
/external/swiftshader/src/OpenGL/compiler/IntermTraverse.cpp
|