- 24 Apr, 2019 5 commits
-
-
Ben Clayton authored
This change moves all calls to rr::Load() and rr::Store() to two new functions: SIMD::Load() and SIMD::Store(). This attempts to consolodate the SIMD memory ops into reusable functions, while also adding bounds checking on the accesses. The additional branches hurts the JIT codegen performance. This will be resolved with a future change. Tests: dEQP-VK.robustness.* Bug: b/131224163 Change-Id: I3a392a1f4f5366fa5134c081e0a2479575f92d80 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29334Reviewed-by:
Chris Forbes <chrisforbes@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Presubmit-Ready: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Ben Clayton authored
These may be required with the new SIMD::Load and SIMD::Store implementations. Bug b/127472316 Test: dEQP-VK.spirv_assembly.instruction.compute.opatomic.load Test: dEQP-VK.spirv_assembly.instruction.compute.opatomic.store Change-Id: I89db49d7c27c268d37d1bb768adfefd99c11c7c0 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29449 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Ben Clayton authored
This code was added just before LLVM 3 was removed, and can be considered a merge conflict. Bug: b/130460252 Change-Id: If7d6f46c78a94cb8f3cc07ec4ba7c91a58e5926d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29813 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Antonio Maiorano <amaiorano@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
SwiftShader Regression Bot authored
Change-Id: Ic67efe0d3977417dcc941e103cd37d4ac09998cb Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29788Reviewed-by:
Chris Forbes <chrisforbes@google.com> Tested-by:
Chris Forbes <chrisforbes@google.com>
-
Chris Forbes authored
These work the same way; differences are in coordinate handling and where we find the image format. Bug: b/131171141 Change-Id: I9dccfd88e686102d6200bdba8a8ad64b7debeca3 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29688Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
- 23 Apr, 2019 10 commits
-
-
Chris Forbes authored
Bug: b/119620767 Test: dEQP-VK.renderpass* Change-Id: I749c26e9924d69735f45ca981957016718fe5b0a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29708Tested-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Chris Forbes authored
Previously if sample count were 1, we would skip the setup for the centroid 1/w, and then blindly use it, leading to NaN in all interpolants marked `centroid`. Bug: b/118386749 Test: dEQP-VK.glsl.linkage.varying.* Change-Id: I4f5d0b052f2defaad86706b85790ef14cd42f53f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29650Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
alphaReference is not used. It previously provided a configurable threshold for alphaToCoverage, before that was explicitly managed by pipeline state. The sample mask is not dynamic state, so it can never change between draws without a complete context change. sRGB write control is not context state, it is determined by the image view format. Bug: b/118386749 Change-Id: Id631732fad52cf6b75c1635bcd7ef464dda10e54 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29649Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
Chris Forbes authored
All the real work was already done; this just needed connecting. Bug: b/118386749 Test: dEQP-VK.pipeline.multisample.alpha_to_coverage.* Change-Id: Ib1e2b7a64a76d8d7df9ed5c93e4cc738efdd83b3 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29648Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
The template-based descriptor write mechanism had got left behind as more descriptor types were added. Reimplement the classic mechanism in terms of a template entry, and implement all the current logic there. Bug: b/123244275 Test: dEQP-VK.binding_model.* Test: dEQP-VK.spirv_assembly.* Test: dEQP-VK.glsl.* Change-Id: Ide5a6bf70978774170f79d42652c746c2b5b8abd Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29608Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
- OpLoad of pointer to descriptor is passthrough; reflect that in Kind. - Actually pass through all the descriptor types in EmitLoad - Fix Walk*AccessChain to not create useless divergence; constant offset was added in the wrong place. - Adjust WalkAccessChain to adjust pointers into descriptor arrays using the descriptor stride - Adjust storage image descriptor content to not assume layerPitch == slicePitch, since that isn't true. Bug: b/131082089 Test: dEQP-VK.binding_model.* Test: dEQP-VK.spirv_assembly.* Test: dEQP-VK.glsl.* Change-Id: I6cc4ae7b0fdeb54ede111f532c7e3fd1f108803c Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29549Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
We already have the pointer available; no need to recompute it from the decorations. This is groundwork for being able to index into arrays of storage image descriptors correctly. Bug: b/131082089 Change-Id: I574968b6ab8d205d5e4e3fcb4df5d08d2b88dcfa Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29568Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
SwiftShader Regression Bot authored
Change-Id: I36296a8948651faeaeeea8ae4f46237701a64137 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29748 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Chris Forbes <chrisforbes@google.com> Tested-by:
Chris Forbes <chrisforbes@google.com>
-
Chris Forbes authored
These are the remaining operations which were not tested through the dEQP-VK.image.* path. Test: dEQP-VK.spirv_assembly.* Bug: b/127472316 Change-Id: Icedc2fc7b972714bc67705e2458e1207972b95cc Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29457Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
Accept SPV_KHR_storage_buffer_storage_class, which is part of SPIRV 1.3. Bug: b/130937460 Test: dEQP-VK.spirv_assembly.* Change-Id: Ifbef9f3093ce7cca90edd75ebd86831f16b630cf Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29508Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
- 22 Apr, 2019 1 commit
-
-
SwiftShader Regression Bot authored
Change-Id: I40b6d61fd0de9d9e5d2b63974459c9199ea71b48 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29668 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Chris Forbes <chrisforbes@google.com> Tested-by:
Chris Forbes <chrisforbes@google.com>
-
- 21 Apr, 2019 2 commits
-
-
Ben Clayton authored
Produce warnings for Chrome, resulting in errors. Change-Id: Icda954e1d6c8da79ecf5eddbd542a38a8d97847a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29670 Presubmit-Ready: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Ben Clayton authored
There's LLVM code that can now be cleaned up, but that'll come as another pass. Bug: b/130343040 Change-Id: Ie16e296fc1c4d226a81b221d18447cbc09cc2c16 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/28909Tested-by:
Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
- 20 Apr, 2019 1 commit
-
-
Ben Clayton authored
An easy to revert step towards https://swiftshader-review.googlesource.com/c/SwiftShader/+/28909. Bug: b/130343040 Change-Id: I0180e9698bedd2f11749faca1deef141e7000dc4 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29669 Presubmit-Ready: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
- 19 Apr, 2019 7 commits
-
-
Chris Forbes authored
Change-Id: Iacc8bd65e9f8ba268dbe7dae6aa244a25c6f770a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29548Tested-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>
-
Ben Clayton authored
While having the base units as sizeof(float) is handy (as that's the smallest unit we currently support), it makes limit checking tricky as we're continually converting units of byte <-> float. This sets us up nicely for when we want to support smaller types. Change-Id: I3e334b6df4899f433b281118be23fdf8df6d9829 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29328 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>
-
Ben Clayton authored
The split of intermediate + base pointer in two maps was ugly. This is also required for tracking bounds on pointers, required for robustness tests. Change-Id: I782aeee8caab43ce58ba948dcca97afa2e07482c Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29273 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>
-
SwiftShader Regression Bot authored
Change-Id: I811ea5cb03f072003d886289c3b87d7d8498d4dc Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29528Reviewed-by:
Chris Forbes <chrisforbes@google.com> Tested-by:
Chris Forbes <chrisforbes@google.com>
-
Chris Forbes authored
Includes associated Reactor plumbing. Bug: b/130768731 Bug: b/127472316 Test: dEQP-VK.image.* Change-Id: I700eb29f976410b59778e4ed162066b84a55a974 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29456Tested-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>
-
Chris Forbes authored
- OpAtomicIAdd - OpAtomicSMin - OpAtomicSMax - OpAtomicUMin - OpAtomicUMax - OpAtomicAnd - OpAtomicOr - OpAtomicXor - OpAtomicExchange Includes required plumbing down through Reactor. Subzero support is just stubbed for now. Bug: b/130768731 Bug: b/127472316 Test: dEQP-VK.image.* Change-Id: Iecf9e9ed602c4fde674f54491658048c96fd02c6 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29453Tested-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>
-
Chris Forbes authored
Bug: b/130768731 Test: dEQP-VK.image.* Change-Id: Ifdac16163b729a552df5369fdf089cae3dee8ecf Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29452Tested-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>
-
- 18 Apr, 2019 12 commits
-
-
Ben Clayton authored
Bug: b/130746922 Change-Id: I35dfcb93c8e902d0be566fad50ae991d5490e853 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29348Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
Also fix the addressing to correctly use the slice pitch to advance to the correct layer in an arrayed 1D texture, rather than using the row pitch. Bug: b/130768731 Test: dEQP-VK.image.* Change-Id: I46b8c4eb353d7901d5953df46138ff9e01f87ead Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29411Tested-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/130768731 Test: dEQP-VK.image.* Change-Id: Ib3e9b5cd4b28f9ed3020dcd4e724cf961c3ddac3 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29410Tested-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/130768731 Test: dEQP-VK.image.* Change-Id: I63334478b014d36ed789604154797717159d4f37 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29448Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Chris Forbes authored
Tests: dEQP-VK.image.image_size.* Bug: b/129523279 Change-Id: I6ec474bb5fcdab8853ac4afaa2967bbc4023c970 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29268Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Chris Forbes authored
Bug: b/130768731 Test: dEQP-VK.image.* Change-Id: Iebea846a5fe611aa4ad769e2fb7c636ddb5dbc4d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29408Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Ben Clayton authored
Currently only works on Linux + GDB. See docs/ReactorDebugInfo.md for details. Change-Id: I73d47d0492f6ccfc07eec4d4084332b4991fd515 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27949 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>
-
Ben Clayton authored
Change-Id: I40db6373718504cd2df3e328cefecb394e47e5c1 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27783Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
SwiftShader Regression Bot authored
Change-Id: Ifa7a949486fa6437d8cb1dea0ac026096cdd036b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29468 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Ben Clayton authored
Actually print what is unhandled so we can fix it. Change-Id: I98ef49cf2f3f3882a8c4296578af4880c2542240 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29270 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Ben Clayton authored
Bug: b/130746922 Change-Id: I0255460280d126e471dea107ffe976a1d765a218 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29335 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
Subzero is now lagging behind LLVM in terms of functionality. Stub a new Capabilities, pre-populated with the Call() feature (implemented in a follow-up change). With this we can skip tests that are known to not pass. Bug: b/130746922 Change-Id: I033b63034a6dccd31418b1d1898114adbd718025 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29409 Presubmit-Ready: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
- 17 Apr, 2019 2 commits
-
-
Ben Clayton authored
Change-Id: I1039b750821ba594a423d758d34cd48c0a014e92 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29269Tested-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Antonio Maiorano authored
In particular, many of these would produce an UNREACHABLE assert in libGLESv2, such as glCopyTexSubImage2D. Bug: b/116827965 Change-Id: I719ff20b7452d0b933b8e4120abe831783844342 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/29048 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Antonio Maiorano <amaiorano@google.com>
-