- 08 Mar, 2019 13 commits
-
-
Alexis Hetu authored
The blitter has a cache which can allow us to reuse already used routines, so it should be kept in a central location. For that reason, the blitter ownership was moved from the Image object to the Device object. Bug b/117974925 Change-Id: I825853c381dcbc04701b1d9e7dfa376108294221 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25728Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
Fixes dEQP-VK.glsl.operator.geometric.cross.* Bug: b/127804400 Change-Id: I62337ba547048426c76adb1e90a1ebc4079e2a3d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26571Tested-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
Basic implementation of descriptor update template. Only supports VK_DESCRIPTOR_UPDATE_TEMPLATE_TYPE_DESCRIPTOR_SET template type. Bug b/123244275 Change-Id: Iaf7c1e52bee6d2683a2f34bd2f780396aa953442 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26568Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Chris Forbes <chrisforbes@google.com>
-
Chris Forbes authored
There is a subtle trap here -- almost all SPIRV instructions require vector widths to match, but for OpVectorShuffle, the widths of the result vector and the two sources are completely independent. Fixes dEQP-VK.glsl.operator.unary_operator.plus.highp_vec2_vertex and many others. Bug: b/127959969 Change-Id: Iaa2cc09fb510fa2ab07a6f53599af8dade553a9a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26570 Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
Change-Id: I0fba3c2969cd61c8e7b6e30628473944f2e5a986 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26555Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
Fixes many tests in dEQP-VK.glsl.* Bug: b/126873455 Change-Id: If949066bbe1d333755d1d83ab175bc39dcc91d91 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26608Tested-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
A step toward being able to run many of dEQP-VK.glsl.* Bug: b/126870789 Change-Id: Id53d5a511d7f0fa10994c46254529027ad773542 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26569Tested-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
These decorations are used for all explicit layout storage classes -- Uniform, StorageBuffer, PushConstant. Bug: b/120799499 Change-Id: Ida7ee6e2a5145d09792acf39b6e33d039431578b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26489Reviewed-by:
Ben Clayton <bclayton@google.com> Reviewed-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
Change-Id: Ie4e2c11c495f17bf628b3c828ce81596e3d73e5f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26588Reviewed-by:
Ben Clayton <bclayton@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
Level count was off by one for the size. Also change vk::MAX_IMAGE_ARRAY_LAYERS to be the actual value rather than log2 -- this was a bug waiting to happen somewhere. Bug: b/118429780 Change-Id: I783a11571f90c34302a4ead8476009d309880eb6 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26508Tested-by:
Chris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Nicolas Capens authored
The lexer doesn't actually keep the string for literals. Bug chromium:939239 Change-Id: Ib8b28e75e36d1c6beff8afa580fc4c29c23b6eb0 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26428Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
SwiftShader Regression Bot authored
Change-Id: I32f5d800fdbc0c2e672c3b92b64745fe34d23573 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26528Reviewed-by:
Ben Clayton <bclayton@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Chris Forbes authored
Bug: b/126873455 Change-Id: I5cac6eedf2d17bed6f01275e6d80cf8227886a8e Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26468Tested-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
- 07 Mar, 2019 12 commits
-
-
Ben Clayton authored
Also add a bunch of tests. Bug: b/126028338 Change-Id: Ic8eb822dce3eff402e2a5f222c5077c6831f4505 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25748Tested-by:
Ben Clayton <bclayton@google.com> Presubmit-Ready: Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
- OpExtInstImport now enforces correct instruction set - OpExtInst dispatch done - Implemented FAbs, SAbs Bug: b/127804400 Change-Id: I41b9755afeeb9a61c8294beb610f5e6c77080fa5 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26408Reviewed-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
Bug: b/126330097 Change-Id: Ia612ddf785b79b88a59c30b1e436470bb3fba3e8 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26228Reviewed-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Ben Clayton authored
And add load / store paths to deal with data layouts that are not interleaved by lane. Bug: b/126330097 Change-Id: Id7730a606d623ffe74ae57668216f05159972f10 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25710Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Ben Clayton authored
Regress is a tool that detects test regressions with SwiftShader changes. Regres monitors changes that have been put up for review with Gerrit. Once a new patchset has been found, regres will checkout, build and test the change against the parent changelist. Any differences in results are reported as a review comment on the change. Change-Id: I0a848a56d99f020d6ffd48699a2277fa71526788 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/24929Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
At least for large formats, we assume 16 byte alignment for render target writes. Requiring 16 bytes in general seems a good idea for x86_64. Bug: b/127721996 Change-Id: Ie4d2d9bf71fb8a3d8b58f099785e75a72ff0e181 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26448Tested-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> Reviewed-by:
Alexis Hétu <sugoi@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
SwiftShader Regression Bot authored
Change-Id: I5c4e28ccd80163c03a7172b8db881ea28e9e0203 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26350Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com>
-
Ben Clayton authored
This was just calling the wrong function. Looks like a copy and paste bug. Change-Id: Icde43940f17f467f7602b7a2ce0e5ac1e517c769 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26208Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Ben Clayton authored
Allows expressions like: Array<Float4> arr; Pointer<Float4> ptr = &arr[0]; Bug: b/126330097 Change-Id: I4ad95b46cfa1332eded0424ba4aeb7fe8642b71a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25709Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Ben Clayton authored
Some dEQP tests were not made for SPV_ENV_VULKAN_1_1, and error in the optimizer. This produces 0 words of SPIR-V, that then goes and explodes in SpirvShader. Add an assert to catch the 0-word case. Bug: b/127454276 Change-Id: I60576e6691a9cf74656dfcd9c53aeed7ab578de1 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26188Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Ben Clayton authored
MSVC does not like: sizeof(T[N]) Change-Id: If7586a0d29f609372e036fdb31481e923469a7ad Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26349Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Chris Forbes authored
- Fix broken use of VkImageCreateFlags in various places as an aspect mask - Be consistent about layout of D+S images. Layout is now [aspect][layer][level]. - Allow fetching an offset into a particular aspect. Fixes dEQP-VK.pipeline.depth.* Bug: b/118619338 Change-Id: I46adc9c637882e7144945eaeacce9f087d53caf0 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26011Tested-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>
-
- 06 Mar, 2019 6 commits
-
-
Ben Clayton authored
tests/regres/full-tests.json contains a full test list that will be run once every day. The results of this full test pass will update the test lists binned by status (*-PASS.txt, *-FAIL.txt, etc). tests/regres/ci-tests.json references just the *.PASS.txt lists, and will be run for every change up for review. The goal of this refactor is to significantly speed up the regres test cycles. The side effect of this is that regres will no longer automatically tell you when a single change passes new tests. It will however tell you when you break tests. The daily test will show you new tests that are passing, and gives a simple way to see all tests by status. Bug: b/127664487 Change-Id: I590378e0bf819211dbc4de85f63ce77a681f6e46 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26328Reviewed-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Ben Clayton authored
Bug: b/126873455 Change-Id: I5df5206cb3743dd7b36d4ad521f9e9ddf81ae638 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26168 Presubmit-Ready: Chris Forbes <chrisforbes@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Ben Clayton authored
Bug: b/127282157 Change-Id: Id2c5b29d744f6f7ddcbb853db0a95228425d7f83 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26108Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Ben Clayton authored
This initializes arrays to hold the descriptor sets in the routine. Nothing uses this yet. Bug: b/126330097 Change-Id: If052d0b93e62e4f32e88ed02f9bc21f4203587f5 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25553Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com>
-
Chris Forbes authored
We don't support any sparse features, so we can always just produce zero properties structures here. The VK1.1/GPDP2 equivalent already forwards to this function, so we also get that for free. Bug: b/118429780 Change-Id: I7b43a291354f1ca2ae01d021dfa48263b08b57cc Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26308Tested-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Chris Forbes authored
Change-Id: I39608947651b855c6e2668de98ab5696e18f501f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26310Tested-by:
Chris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 05 Mar, 2019 4 commits
-
-
Ben Clayton authored
When the build fails, it's very hard to find the compiler error in the spam. Change-Id: Ic975f0a075e4104db82a58ef03e1ba643e520fe2 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26031 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Chris Forbes authored
Replace the runtime `warning` with something that will actually crash us, and add stub implementations of OpLabel and OpReturn to allow trivial shaders to work. There's little point in continuing beyond an unimplemented instruction -- if you get lucky, you hit a crash on use of the instruction's result. If you get unlucky, you wander off into undefined behavior. Change-Id: I3b222ea74446754276096c81fc3669c311872316 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26088Tested-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Ben Clayton authored
Bug: b/127282157 Change-Id: Icaec924ef011b42069d157bec2d76ae5df3eea46 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26048Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Ben Clayton <bclayton@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Logan Chien authored
This commit adds `-Wno-implicit-fallthrough` to disable implicit fallthrough warnings. This commit is required because the latest LLVM/Clang toolchain emits more warnings. Since `third_party/llvm-7.0` is an upstream project, we don't want to locally patch the code. Thus, we are disabling implicit fallthrough warnings before it has been fixed in the upstream. Bug: b/115344057 Test: Build libGLESv2_swiftshader for Android Change-Id: Ibde53e030ba66af20ba5281b33a684350ef4b35f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25529 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Ben Clayton <bclayton@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Logan Chien <loganchien@google.com>
-
- 04 Mar, 2019 5 commits
-
-
Chris Forbes authored
`d` is used to drive some indexing math later. Bug: b/127343247 Change-Id: Id9da208f5a7b678748f129f97de03f5bf04bcbe1 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26128Tested-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Hernan Liatis authored
dEQP tests passing: dEQP-VK.wsi.xlib.swapchain.get_images Bug: b/124265819 Change-Id: I4e2dc8dd48b93bbddba44654c72afb8f43bc3561 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25789Tested-by:
Hernan Liatis <hliatis@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
-
Raymond Chiu authored
Change-Id: I30738f487bfc1ac57ae3ef6265c013bb2865417f Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25210 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Chris Forbes <chrisforbes@google.com> Tested-by:
Raymond Chiu <chiur@google.com>
-
Chris Forbes authored
- Fix mapping of B8G8R8A8 -- this is the same as the old D3DCOLOR. - Remove all the other stream types that don't match anything in Vulkan. - Remove unused resource pointer in stream There is still future cleanup work to do here -- we should be able to do vertex fetch purely based on the VkFormat rather than mapping it onto the GL model. Change-Id: Ia100ec68e8930acd17b6cba35a27403b4ef8e883 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25768 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Tested-by:
Chris Forbes <chrisforbes@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Hernan Liatis authored
Bare bones implementation of a creatable and destroyable swapchain Bug: b/124265819 Change-Id: Ie8277184863ab6b7204b6c8f6fc2b2f86ad787c9 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/25509 Kokoro-Presubmit: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Hernan Liatis <hliatis@google.com>
-