- 08 Jun, 2021 1 commit
-
-
SwiftShader Regression Bot authored
Reactor backend: LLVM Change-Id: Ie03892e67b23995d84263e7b94c27204a67b8aab Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54808 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
- 07 Jun, 2021 1 commit
-
-
SwiftShader Regression Bot authored
Reactor backend: Subzero Change-Id: I30882faaf36d9291d9b487362fd088d2152a8b4e Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54708 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
- 03 Jun, 2021 3 commits
-
-
Nicolas Capens authored
This change adds a script which is to be called by the SwiftShader into Android AutoRoller: https://autoroll.skia.org/r/swiftshader-android It prepares a checkout for upload into the Android repo. Specifically, Android does not allow remote submodules, so this script removes them. Note SwiftShader does not require any submodules to build the library; they are optional for development purposes. Bug: b/189557997 Change-Id: I36b4ae59cd843f1c69146f0f52ce8f323c6bc15a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54768Reviewed-by:
Alexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
Nicolas Capens authored
The vk::GraphicsState constructor does not initialize all members in all code paths. We were relying on the zero-initializing done by vk::allocate() which is used to allocate vk::GraphicsPipeline which in turn contains a GraphicsState member. We want to change vk::allocate() to no longer zero-initialize all memory, to catch more MemorySanitizer errors made by applications. Thus we must also not rely on such automatic initialization ourselves. Note that this change might also hide MemorySantizer violations committed by the application side. For example some state is only copied from VkGraphicsPipelineCreateInfo into vk::GraphicsState on construction when flags indicate they're not dynamic state. If the application forgets to makerecord commands that set the dynamic state, their value is undefined: Vulkan 1.2.178 section 6. Command Buffers: "When a command buffer begins recording, all state in that command buffer is undefined." Vulkan 1.2.178 section 10.11. Dynamic State: "If the state is specified as dynamic in the new pipeline object, then that command buffer state is not disturbed. Before any draw or dispatch call with this pipeline there must have been at least one call to each of the corresponding dynamic state setting commands since the command buffer recording was begun, or the last bound pipeline object with that state specified as static, whichever was the latter." Thus once sw::allocate() no longer also zeroes this data, we should revert the value-initialization where possible and ensure we don't touch the uninitialized data ourselves, unless as a consequence of an application bug. Bug: b/140991626 Change-Id: I060e8d8a79e93b0676669eed361fab4f86ab1b56 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53089 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
Nicolas Capens authored
vk::allocate() zero-initializes its memory, which was nulling the VkSpecializationInfo::pMapEntries field in case the mapEntryCount is 0. We'll be changing vk::allocate() to not zero-initialize, to catch cases where applications might incorrectly be relying on it, with MemorySanitizer. So we have to also not be relying on it. Bug: b/140991626 Change-Id: I5917c902c0af27985556340dfc1dbae79010a125 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54468 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 02 Jun, 2021 2 commits
-
-
Sean Risser authored
clang-format will modify non source files and has no configuration options to ignore bash, python, or extensionless files. This CL is a follow up for: https://swiftshader-review.googlesource.com/c/git-hooks/+/54569 Bug: b/187094215 Change-Id: I72953bd07e3c16b70aab441a25c27abae31b6a87 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54689 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: Sean Risser <srisser@google.com> Tested-by:
Sean Risser <srisser@google.com>
-
Sean Risser authored
The Vulkan spec is being clarified to explain that the FragCoord passed to a shader should use the unclamped depth value and that only the depth test and depth write should use clamped values. Bug: b/184063472 Change-Id: Ic76c13512745abea2181475eff5147134a1bf147 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54668 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Sean Risser <srisser@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: Sean Risser <srisser@google.com>
-
- 31 May, 2021 1 commit
-
-
Nicolas Capens authored
This update advances dEQP to a revision where the 1.2.6 branch is merged into the master branch. It uses the new 'chunked' testlists. Notable new tests: - Add tests for VK_EXT_provoking_vertex (https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/2092) - Require geometry shaders for adjacency topologies (https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/2906) - Add early fragment tests (https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/2738) Tests: dEQP-VK.* Bug: b/140302392 Bug: b/189588731 Bug: b/167582422 Fixes: b/189334760 Fixes: b/185814882 Change-Id: I278224b3e709c714f1e7e6fb750eeffbfba84578 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54568Tested-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Sean Risser <srisser@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
- 29 May, 2021 2 commits
-
-
SwiftShader Regression Bot authored
Reactor backend: LLVM Change-Id: Id3e18f2779facfe3f441f684a40540a86d904643 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54489Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
Nicolas Capens authored
Using -DDEQP_TARGET=x11_egl caused a build error on some systems: /usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/../../../x86_64-linux-gnu/Scrt1.o: in function `_start': (.text+0x20): undefined reference to `main' Using 'default' instead makes the build succeed, and makes XCB WSI tests pass. However, GLES tests crash. Since we no longer need them due to SwANGLE, with SwiftShader becoming Vulkan-only, this change removes them from the test run. Also, the dEQP build is reduced to just the deqp-vk target. Lastly, code coverage generation on 'daily' test runs is disabled. It produced errors such as: Failed to process test coverage for test 'dEQP-VK.***'. llvm-profdata errored. Cause: exit status 1 It was already disabled locally on the Regres bot to avoid these errors. Bug: b/189469951 Bug: b/152192800 Change-Id: I07383e1168cc322bb9247ed39db091f91c054b6d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54589 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
- 27 May, 2021 4 commits
-
-
Sean Risser authored
Bug: b/184063472 Change-Id: Ife9e8c7d90d43695b712ac6d1d44f9b4ec73a4df Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54669Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Sean Risser <srisser@google.com> Commit-Queue: Sean Risser <srisser@google.com>
-
Nicolas Capens authored
Worker::current is a static thread_local which gets intialized to null, which gets checked for in Scheduler::Fiber::current(). Unfortunately MemorySanitizer does not observe the initialization when Marl is used within a shared library, when the Linux dynamic loader is not instrumented and its TLS initialization is not otherwise intercepted and handled correctly. This change decorates Scheduler::Fiber::current() with __attribute__((no_sanitize_memory)) to suppress instrumenting it with use-of-uninitialized-data checks. Bug: chromium:1211047 Change-Id: I61b584922d9aba5d67991ce916c69102734f2b61 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54610Reviewed-by:
Alexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
Sean Risser authored
git-hooks tracks git hook scripts for SwiftShader. Using git config we can tell git to use these scripts instead of what's in .git/hooks. Bug: b/187094215 Change-Id: I2df090c47ceeb1b352960576a34f259b75946302 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54528 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Sean Risser <srisser@google.com> Commit-Queue: Sean Risser <srisser@google.com>
-
Nicolas Capens authored
Bug: b/189334760 Change-Id: I27d8e54d20a534ffd5f7b0deb8d0c55c05baabdc Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54588 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 26 May, 2021 1 commit
-
-
Chong Gu authored
Change-Id: Ic97c3f6ad929f5aa73ff8fb97f0f43321448c739 Bug: chromium:1205958 Change-Id: Ic97c3f6ad929f5aa73ff8fb97f0f43321448c739 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54548 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: Chong Gu <chonggu@google.com> Tested-by:
Chong Gu <chonggu@google.com>
-
- 22 May, 2021 1 commit
-
-
SwiftShader Regression Bot authored
Reactor backend: LLVM Change-Id: I528543663edc615d390ef91b86939ec158341149 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54488 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 21 May, 2021 3 commits
-
-
John Stiles authored
This reverts commit bbe1b996. Reason for revert: breaks conformance test Change-Id: I4f9579c10414b88646b4bda2449ac04e052ca162 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54449Tested-by:
John Stiles <johnstiles@google.com> Reviewed-by:
John Stiles <johnstiles@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: John Stiles <johnstiles@google.com>
-
Nicolas Capens authored
LLVM 11 removes support for llvm::ConstantVector::getSplat() to take an integer number of vector elements obtained from the getNumElements() method. Use the new getElementCount() approach instead. See https://reviews.llvm.org/D74386 Bug: b/188819735 Bug: b/165000222 Bug: b/178600922 Change-Id: I202a8725e1e00f35d7f5d5ee76f5538243d157b9 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/52268 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com>
-
Sean Risser authored
Per the spec: If VkPipelineRasterizationStateCreateInfo::depthClampEnable is enabled, before the sample’s zf is compared to za, zf is clamped to [min(n,f),max(n,f)], where n and f are the minDepth and maxDepth depth range values of the viewport used by this fragment, respectively. So when we read oDepth back from a shader that sets fragDepth, it should only be clamped when depth clamping is enabled, and it should be clamped to the viewport depth clamp values, not [0, 1]. Bug: b/184063472 Change-Id: I92e99b80f3929b8b8030f41f6a3afbfebda4e737 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54408Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Presubmit-Ready: Alexis Hétu <sugoi@google.com> Commit-Queue: Sean Risser <srisser@google.com> Tested-by:
Sean Risser <srisser@google.com>
-
- 20 May, 2021 1 commit
-
-
SwiftShader Regression Bot authored
Reactor backend: LLVM Change-Id: I452fb0b5fb6f977955922a8bf8fb74dfe2b293eb Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54448Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 19 May, 2021 3 commits
-
-
John Stiles authored
I recently discovered a very long-standing bug in the GLSL reference compiler (circa 2002) that has managed to propagate to Mesa, glslang, SwiftShader, and several GPU drivers. I'm trying to patch it where I can. A description of the issue is here: https://github.com/KhronosGroup/glslang/issues/2645 Change-Id: I5c4985bcb05eadfc6559cf08929d9ef77c24096d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54428Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: John Stiles <johnstiles@google.com> Tested-by:
John Stiles <johnstiles@google.com>
-
Sean Risser authored
Since SwiftShader supports VK_EXT_depth_range_unrestricted, there's no reason to assert that min/MaxDepthBounds must be in the range [0, 1]. Bug: b/188556447 Change-Id: I8e11b192c9407dabb603099666f4b985e5377040 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54388Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Sean Risser <srisser@google.com> Commit-Queue: Sean Risser <srisser@google.com>
-
Sean Risser authored
EmiteImageWrite() was writing to inactive lanes, which was causing several tests to fail. state->activeStoresAndAtomicsMask() returns the proper lane mask. Bug: b/184063472 Tests: dEQP-VK.glsl.builtin_var.fragdepth.* Change-Id: I24882cb963ed30052c4774318e1267041c89ee02 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54368Tested-by:
Sean Risser <srisser@google.com> Commit-Queue: Sean Risser <srisser@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
- 17 May, 2021 1 commit
-
-
Nicolas Capens authored
The downstream copy of SwiftShader in AOSP has license info changes: https://android-review.googlesource.com/c/platform/external/swiftshader/+/1576044 This change cherry picks it into the upstream repo. Also add natsu@ and schuffelen@ to OWNERS to retain their privileges when we directly roll SwiftShader into AOSP. Bug: skia:11901 Change-Id: Ibfba7640d0133740c38fc0f00d32fcb5e11f8a11 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54148 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Jason Macnak <natsu@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: Nicolas Capens <nicolascapens@google.com>
-
- 14 May, 2021 2 commits
-
-
Nicolas Capens authored
For MemorySanitizer builds which do not have Reactor routine instrumentation enabled, mark all Call() arguments as initialized by calling __msan_unpoison_param(). This prevents false positives. Note that we also already unpoisoned all memory writes, when proper instrumentation is not enabled. While it's preferable to set REACTOR_ENABLE_MEMORY_SANITIZER_INSTRUMENTATION=1 to avoid the false negatives caused by unpoisoning, it currently causes slowdowns which result in timeouts. Bug: b/187467599 Change-Id: I5fdcbceb5cd795f5e3684df0cdc1ba6c1bef06e9 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54348 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
Nicolas Capens authored
Includes VK_EXT_provoking_vertex definitions in vulkan_core.h, allowing to delete the custom vk_ext_provoking_vertex.h header. The include of vulkan_fuchsia_extras.h into vulkan.h was manually added back, and the definitions that are now part of vulkan_fuchsia.h were removed from vulkan_fuchsia_extras.h. https://github.com/KhronosGroup/Vulkan-Headers revision 9af411e83fb08cd2bddc3ec771de89416a96cb91 tag v1.2.178 Bug: b/142379729 Change-Id: I83a248b792149a6019fa0a14afbf790297b0e6d0 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54308Reviewed-by:
Alexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 12 May, 2021 2 commits
-
-
Nicolas Capens authored
Scalar SSE instructions only use the lowest scalar of an SSE vector register, but MemorySanitizer doesn't recognize some of them so it will check the entire 128-bit operand for uninitialized bits. This change makes sure the other elements of the vector gets zero- initialized instead of leaving it undefined. This affects Round, Trunc, Frac, Ceil, Floor, Sqrt, and RcpSqrt scalar operations. Note that this workaround results in MemorySanitizer marking the entire output vector to have a well-defined value, which isn't actually the case in non-MSan builds. Fortunately, a scalar can't be cast into a vector (unlike our 'emulated' small vectors), so we just have to make sure to immediately extract the scalar from the intrinsic's result. Bug: b/172238865 Change-Id: If68388e476ac9e27e2de33ddf2efab4124540c7a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54269 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
Nicolas Capens authored
MemorySanitizer does not recognize the x86 movmskps and pmovmskb instructions. In such cases it falls back to checking all input operands for uninitialized bits. This causes false positives specifically with Reactor's Byte8 type which is often loaded from memory, leaving the upper 64-bit of an SSE register undefined. This change masks out the unused parts of the input vector, leaving just the sign bits. Bug: b/172238865 Change-Id: I50c921a7ff8a4ebdba89136bb82c9f46ccdc3769 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54268 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 11 May, 2021 1 commit
-
-
SwiftShader Regression Bot authored
Reactor backend: Subzero Change-Id: Ie685c3ae0cfb4392bf829dbb79e677fe485a87a9 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54168 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
- 10 May, 2021 3 commits
-
-
Sean Risser authored
SwiftShader exposes VK_EXT_depth_range_unrestricted which allows depth values outside [0, 1]. depthBoundsTest code asserted on values outside that range and were causing test failures. Bug: b/181655689 Tests: dEQP-VK.pipeline.depth_range_unrestricted.* Change-Id: Iae9103b802672960f2f0f67710f75165780f1368 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54110Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: Sean Risser <srisser@google.com> Tested-by:
Sean Risser <srisser@google.com>
-
Sean Risser authored
clang-format-all.sh will modify every file in the repository that isn't properly formatted. However, if you only care about the formatting of the files touched in a CL, this is over-zealous. So the default behavior is to only modify a file list derived from git's current set of files. You can still use the script to format the entire repo with -a or --all. clang-format has been run on all files in the repository to bring them up-to-date with the latest format. Bug: b/187094215 Change-Id: I2753c83e00d36817eddb0d8e641100240a2e8e23 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54048Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Commit-Queue: Sean Risser <srisser@google.com> Tested-by:
Sean Risser <srisser@google.com>
-
Alexis Hetu authored
We no longer need the full vk::Sampler information in SampledImageDescriptor, since we now only use the id, so it was replaced with a single uint32_t member called samplerId. Bug: b/129523279 Change-Id: I61808054fb5b1327c60e0f34894f9fbd42d36b33 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54109 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: Alexis Hétu <sugoi@google.com>
-
- 07 May, 2021 1 commit
-
-
Alexis Hetu authored
This change ensures that the descriptor state identifiers used to perform lookups in the sampling routine cache are all that is used to obtain the state itself which is used for specializing sampling routine generation. The createSamplingRoutine lambda function is made to capture only the 'device' variable, instead of allowing access to all local variables. The device is required to obtain the sampler state from the sampler identifier. Compared to the original CL: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53068 This reorders the arguments to SpirvShader::getImageSampler(). Locally, at least, this makes the msan error go away. Bug: b/152227757 Bug: b/187467599 Change-Id: Id8488f3718a29bb53c9eb409e404a49ce2995987 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54108 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Tested-by:
Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
- 06 May, 2021 2 commits
-
-
SwiftShader Regression Bot authored
Reactor backend: Subzero Change-Id: Ia5eb6f1699ba0f1fbf8143bc43db4ff044131b28 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54068Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
Alexis Hétu authored
This reverts commit f6afa763. Reason for revert: An MSAN error in SpirvShader::getImageSampler() is blocking the roll Change-Id: I8a1076832fbc2037970f9f586767e7296bbc4608 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54050Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Alexis Hétu <sugoi@google.com>
-
- 05 May, 2021 4 commits
-
-
Sean Risser authored
The depthClamp feature allows users to force the depth to fit between two values. Enabling depth clamping disables primitive depth clipping unless a user explicitly enables both. Bug: b/181655689 Tests: dEQP-VK.glsl.builtin_var.fragdepth.* Tests: dEQP-VK.clipping.clip_volume.depth_clamp.* Tests: dEQP-VK.draw.inverted_depth_ranges.* Tests: dEQP-VK.draw.depth_clamp.* Change-Id: Ib184b1972a11db2a806b7985754075fff55b4461 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53929Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Sean Risser <srisser@google.com> Commit-Queue: Sean Risser <srisser@google.com>
-
Sean Risser authored
Normally the vertex processor will clip geometry that's outside of the near and far planes. However, when depthClamp is enabled, depth clipping must be disabled. So this change also enables the extension that allows users to explicitly control depth clipping. Bug: b/185814882 Tests: dEQP-VK.clipping.clip_volume.depth_clip.* Change-Id: Iaab31c17cac382cf55a8c50d8e7e7d4c87b55272 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53968 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: Sean Risser <srisser@google.com> Tested-by:
Sean Risser <srisser@google.com>
-
Alexis Hetu authored
This change ensures that the descriptor state identifiers used to perform lookups in the sampling routine cache are all that is used to obtain the state itself which is used for specializing sampling routine generation. The createSamplingRoutine lambda function is made to capture only the 'device' variable, instead of allowing access to all local variables. The device is required to obtain the sampler state from the sampler identifier. Bug: b/152227757 Change-Id: Id7f5e18e09f078589a1a1edc12622ed40126cd32 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53068 Commit-Queue: Alexis Hétu <sugoi@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
Alexis Hetu authored
VkImageView state for sampling routine generation was previously obtained from the SampledImageDescriptor structure, which assumes that the mapping from the identifier to this state is unique. This assumption easily breaks as new members field can be added to the descriptor structure, without taking into account that the identifier values should be unique for each unique field value. This change removes the ImageView state members from the descriptor structure, and instead we obtain them through the identifier, guaranteeing a unique mapping. Note that currently this state is compacted into the identifier's 32-bit integer value itself. Should more state be required than what fits in 32-bit (like is the case for VkSampler objects), the mapping between identifiers and their state should be handled through an actual map container. Bug: b/180511322 Bug: b/152227757 Change-Id: I1568eb67df29eb29ddcbbe906a90d236078e3080 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/52888Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Commit-Queue: Alexis Hétu <sugoi@google.com>
-
- 28 Apr, 2021 1 commit
-
-
Alexis Hetu authored
MacOS tests have been spamming a lot of lines of this warning from SwiftShader, sometimes hiding the actual cause of an issue: ../../third_party/swiftshader/src/Vulkan/VkDeviceMemory.cpp:235 WARNING: VkMemoryAllocateInfo->pNext sType = 1000178000 This CL properly silences this warning. Bug: chromium:1185611 Change-Id: Ic9c84c0d57dc142904626bbb3c8a0af5c3cff40d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/54008 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Antonio Maiorano <amaiorano@google.com> Tested-by:
Alexis Hétu <sugoi@google.com> Commit-Queue: Alexis Hétu <sugoi@google.com>
-