- 03 Apr, 2019 11 commits
-
-
Ben Clayton authored
Bug: b/128527271 Change-Id: I4bf01e7915735d7fd3dc827fd67873fff75a756f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28354 Presubmit-Ready: Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Ben Clayton authored
Nothing reads these, save the SSD R/W cycles! Change-Id: Ic49a40387672a1e5aaedb169d9d46f61daedc430 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28353Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
Change-Id: Ia8793c5274985a8474407a42628b054136de8aa9 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28352Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
Change-Id: I8aed6a72c4b9a2a575e441b846c581a67f82cf9b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28351Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
Only the parent process was being killed, allowing children to accumulate, eventually bringing down the machine. Change-Id: I84e43265e53fe17058b3e3568919f6fad704f94f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28350Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
* Shuffle the test lists to mix heavy-load tests with lighter ones. * Bump the test timeout to 10 minutes. Change-Id: I886b08993a39ce78fd198ac4a1ce06f7378dbb20 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28349Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
SwiftShader Regression Bot authored
Change-Id: I91eb237cd3a501eb06054b3069661de5869d8678 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28255Reviewed-by:
Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Nicolas Capens authored
Uses llvm.vcxproj generated by build/cmake.sh Bug b/115344057 Change-Id: I09041d219f194e5ec97daad6b1b247a565909e98 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28110 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
Nicolas Capens authored
Prevents linking issues with LLVM 7.0. Bug b/115344057 Change-Id: I7270c2bcf6095b1ec9911074b3119f87680a7cad Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28168 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
Nicolas Capens authored
Fixes linking for MSVC build. Bug b/115344057 Change-Id: I9a38d987f0cf8c20c670ccdb1c38dd49681bb941 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27968 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
Nicolas Capens authored
The CMake build derives the .def name from the project name, which is libvk_swiftshader. Bug b/115344057 Bug b/116336664 Change-Id: I236839b2da4531e01f5260705c189d9ae8df9769 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27988 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 02 Apr, 2019 3 commits
-
-
Ben Clayton authored
This is per-user data and can easily contain paths to directories outside of the project. Also remove .vscode/launch.json. Change-Id: Iefedc52ec8446d4b6de5e6026761359ac9ac1a0f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28069 Presubmit-Ready: Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Nicolas Capens authored
Subzero does not appear to preserve function arguments passed in as registers onto the stack by itself. Any scratch registers can get reused for local variable register allocation. This workaround simply materializes each concrete Reactor variable constructed from an argument on definition. It does not ensure that arguments turned into variables at a later point are properly preserved. Also this solution does not centralize the materialization, making it bug prone when new concrete Reactor types are implemented. Bug b/129757459 Change-Id: I1007ea0e7204d05e60203b2e896589a03fc515a9 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28309Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com>
-
SwiftShader Regression Bot authored
Change-Id: I3d7474e24faccf30a11a9c9bfdae69aa1ae918bf Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28251Reviewed-by:
Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
- 01 Apr, 2019 5 commits
-
-
Nicolas Capens authored
With Reactor variables now merely tracking the last assigned rvalue if used within a single basic block, we can avoid the unsafe replace() operation on SpirvShader::Intermediate. This effectively reverts https://swiftshader-review.googlesource.com/c/SwiftShader/+/27769 Bug b/129356087 Bug b/128527271 Change-Id: Ibfafc6960ac7e10b898ff8804752b928a7fc1988 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28109Tested-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com>
-
Nicolas Capens authored
Variables which are only used within a single basic block and don't have their address taken, don't require allocating stack memory. Instead they can track the latest rvalue that has been assigned to them. Allocating stack memory is necessary for variables that are assigned to in divergent basic blocks since there is no single rvalue to track after the merge point (unless we inserted phi instructions, but that is outside of the scope of this change). Because Reactor can't look forward to check whether a variable will be used in divergent basic blocks, we keep the set of variables that may not have been materialized yet, meaning they have no stack address yet. When a branch is encountered, they are all materialized. Variables not yet materialized at a Return() are 'killed' to prevent materializing afterwards, which would cause the terminator ret instruction to not be the last instruction of the basic block. Note that this change creates a dependency of the Nucleus implementation on Variable, which is currently defined in a higher layer in Reactor.hpp. Since Variable doesn't depend on anything else in Reactor.hpp it could be made part of Nucleus, or an in-between layer could be added. Bug b/129356087 Change-Id: Ie8c09e34c8befb9787a5c0bca7a20e770bcbf8d3 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27928Tested-by:
Nicolas Capens <nicolascapens@google.com> Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com>
-
Nicolas Capens authored
The Array<> assignment operator gets auto-generated, but is unsafe as it overwrites the Variable address field. Also delete the Variable assignment operator. Bug b/129356087 Change-Id: If6d5945f2a56f9a81bbc1491a524e3f17c1561da Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28088 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com>
-
Nicolas Capens authored
Bug b/129356087 Change-Id: Iab3325d74e783fd158b49ca8f6512641bf7f89ec Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28008 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Ben Clayton authored
It took me quite a while to figure out what this class was doing. Change-Id: I97ab2576e309ee6ca69dd741fd47a86d8cdc6313 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25248 Presubmit-Ready: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
- 31 Mar, 2019 1 commit
-
-
Nicolas Capens authored
This reverts commit 20b950a2. Reason for revert: This is causing regressions in Chrome tests (https://chromium-review.googlesource.com/1546268) as well as google3 presubmit tests (cl/241036666). In both cases there's a timeout. Bug: b/124530765 Change-Id: I570c4df5db9557a1ba7e46b07ba425f63cfa6744 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28268Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 30 Mar, 2019 3 commits
-
-
Ben Clayton authored
C++ now provides this template magic so you don't have to. Also remove Arg(Function<Return(Arguments...)> &) function that wasn't referenced and wouldn't compile if it were. Bug: b/126126820 Bug: b/129403963 Change-Id: I939e4f7cb95c32b8e663df7da6211460c5de605f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25749 Presubmit-Ready: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Ben Clayton <headlessclayton@gmail.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
My previous attempt to document this wasn't great. Reworked the text and diagram to better illustrate what's going on. Still using 'interleaved-by-lane' terminology for now. Bug: b/126330097 Change-Id: Ia6031f06f9eab0f1f05d80151d9a89de5525b5eb Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26529Reviewed-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <headlessclayton@gmail.com>
-
SwiftShader Regression Bot authored
Change-Id: I22da31a6704e8556c9b3ac03e4b71542b2993ecd Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28250Reviewed-by:
Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
- 29 Mar, 2019 9 commits
-
-
Ben Clayton authored
Emit loops in forward direction. While traversing backwards from the loop back-edge means you don't have to worry about flowing down the merge block, it can lead to blocks being generated in orders that can break the visit-once logic. Don't consider flows passing through the return block as a back edge. Strip unreachable blocks from ins - nothing should ever consider them. Tests: dEQP-VK.glsl.loops.* Bug: b/128527271 Change-Id: I497a06f5ce65d54b39294e4016b2df6d2c70487c Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28188Tested-by:
Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
Given the following situation: ``` >->- alive >->->-> \ >-> alive / unreachable >-> ``` We would attempt to codegen the dead block (all blocks ensure their in's are processed first). However dEQP-VK.spirv_assembly.instruction.graphics.conditional_branch.same_labels_false_frag seems to have dead blocks that use values from blocks it couldn't possibly use (as it has no ins). While this is probably just a broken test, it is still good to harden up the compiler to pathological cases like this. Tests: dEQP-VK.spirv_assembly.instruction.compute.* Tests: dEQP-VK.spirv_assembly.instruction.graphics.* Bug: b/128527271 Change-Id: Ibaacf6a58cf7ab6e73771b58cfe67f0c394e53c6 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27948Tested-by:Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Cody Schuffelen authored
This fixes one deadlock in Android's use of SwiftShader. Bug: b/124530765 Test: atest CtsGraphicsTestCases:android.graphics.cts.BitmapTest#testDrawingHardwareBitmapNotLeaking -- --abi x86 Signed-off-by:
Cody Schuffelen <schuffelen@google.com> Change-Id: I0a8a2674c94ae4fb8b3edb1a2b070b8b3568f8f2 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27408 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
Names are difficult to match against values in SpirvShader. Change-Id: I313534c828b63bb73e8d72fa5475acfb93982bcd Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28190 Presubmit-Ready: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Nicolas Capens authored
- Descriptor set pool allocation did not take the layout pointer into account. - Allocating descriptor sets from the pool was not tracking the first node. - The pointer to a second allocation node was offset from null instead of the pool base address. - Added assert that the descriptor update type matches the layout. - Refactoring to avoid duplicate casting of handles. Bug b/123244275 Tests: dEQP-VK.api.object_management.* Change-Id: Idf7aeb8d2597b30038ba1e9e371d99f09639f13c Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28230 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
SwiftShader Regression Bot authored
Change-Id: Idc12be5aa3dc02ceec7eff3d148a730b9d5221f8 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28248Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Chris Forbes authored
Bug: b/126873455 Test: dEQP-VK.glsl.matrix.* Change-Id: I3070690017263b3bf766a329ef7729206f285e45 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28228Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Chris Forbes authored
Bug: b/118619338 Change-Id: Ia03cbc8908efcbb5264f9fbdc91f06eac964c396 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27908Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
This holds the project include paths and defines, used by the C++ intellisense engine. Change-Id: Ib87220cd49a38901167283316d4b549717516a0b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28068 Presubmit-Ready: Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
- 28 Mar, 2019 8 commits
-
-
Chris Forbes authored
Support for these features fell out of doing the indirect support properly. They are optional in the Vulkan spec because of certain hardware that can't source the base instance indirectly, or would require the multi draw to be unrolled in the command buffer. We have neither constraint. Bug: b/118619338 Test: dEQP-VK.draw.* Change-Id: I92291acc06a3abc5f25ea2a2eea18634b3035a01 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27889Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
Chris Forbes authored
Bug: b/118619338 Test: dEQP-VK.draw.* Change-Id: I282c0f1e8f44b0bec2318ab901ec511413bff11d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27888Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
Bug: b/118619338 Test: dEQP-VK.*secondary_cmd_buf* Change-Id: I46e69e216ae4cc0a8e907692dfce270e11b690a2 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28129Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
Bug: b/126873455 Test: dEQP-VK.glsl.matrix.mul.* Change-Id: Ifbc224ad72c27a0168578565a2b50eae8a1088f7 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28131Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Chris Forbes authored
Bug: b/126873455 Test: dEQP-VK.glsl.matrix.mul.* Change-Id: I818ea43d952f8d6d6a2a569a18936277a69b2fab Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28130Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Alexis Hetu authored
Bug b/119620767 Change-Id: I2d0513ab4947e6794fb5122e625641ed1a7c84cb Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28108Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Alexis Hetu authored
Copying compressed images is just a matter of taking block size into account and using a block as a single unit of measure, instead of using a texel. Bug b/119620767 Tests: dEQP-VK.api.copy_and_blit.core.image_to_image.all_formats.color.* Change-Id: Ie77defc197ac7abb09a8555b384093fd50be681b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28048Tested-by:
Alexis Hétu <sugoi@google.com> Presubmit-Ready: Alexis Hétu <sugoi@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
SwiftShader Regression Bot authored
Change-Id: I633d574918a18cf5d9e1a5945067553bf59d443e Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28148Reviewed-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-