- 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>
-
- 22 Apr, 2021 1 commit
-
-
Nicolas Capens authored
Each non-fallthrough case should end with a break (or return). If a scope is needed because local variables are defined, it should end before this break. This avoids bugs such as: switch(i) { case 0: if(c) { // lots // of // code // Easy to misread as always breaking instead of conditionally // falling through due to not spotting the if(c). break; } case 1: // ... } The new scope should also be indented. It makes it easier to spot where each case ends and where the switch ends. This is achieved by setting IndentCaseBlocks to true. Lastly, the case labels themselves should not be indented. Like goto labels they mark where in the code to jump to, and the code itself is already indented within the switch block. Bug: b/144825072 Change-Id: I9a130d1d234795f53b5872e411f1315f56a0e908 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/39551 Commit-Queue: Nicolas Capens <nicolascapens@google.com> Tested-by:Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 20 Apr, 2021 2 commits
-
-
Nicolas Capens authored
Move the addLayerIfAvailable() anonymous function to the condition where it's actually used. Otherwise we get "error: unused variable 'addLayerIfAvailable' [-Werror,-Wunused-variable]" Bug: b/185779640 Change-Id: I2aaa0656bfcb0c1c0aa14c44837cf1b46ea02f54 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53988 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
Nicolas Capens authored
This option is supported since clang-format version 11. Just use the default value for now, to not change the formatting but ensure we have a compatible version of the tool available where required. Bug: b/144825072 Change-Id: If5787f7a8f3502bae5c16e561599f87f4b90f6d6 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/50528 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>
-
- 16 Apr, 2021 1 commit
-
-
Nicolas Capens authored
Downloaded from: https://github.com/llvm/llvm-project/releases/tag/llvmorg-11.0.1 It fixes obeying PointerAlignment for the ellipsis in variadic templates (https://reviews.llvm.org/D83564), so patch all the files that use them. clang-format 11 also introduces support for IndentCaseBlocks (https://reviews.llvm.org/D72276), but leave that unused for now. The default (false) does not change formatting. Note that Chromium's buildtools comes with a version of clang-format which claims to be 11.0.0 but is actually older and does not produce the same formatting as the official release version: http://crbug.com/1150875. Use binaries from the download link above instead. Bug: b/144825072 Change-Id: I1c9a680f5619926db1ed93afea94d8942926af37 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/50568 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> Commit-Queue: Nicolas Capens <nicolascapens@google.com>
-
- 14 Apr, 2021 1 commit
-
-
SwiftShader Regression Bot authored
Reactor backend: Subzero Change-Id: I3d98742fb20161c26ca06291d99093138d799f23 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53848 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 13 Apr, 2021 2 commits
-
-
Sean Risser authored
The depthBoundsTest checks if the depth is withing a certain range, and if not, sets coverage to 0 for the particular fragment. Tests: dEQP-VK.pipeline.depth.nocolor.format.d16_unorm.compare_ops.* Tests: dEQP-VK.pipeline.depth.nocolor.format.d32_sfloat.compare_ops.* Tests: dEQP-VK.pipeline.depth.nocolor.format.d32_sfloat_s8_uint.compare_ops.* Tests: dEQP-VK.pipeline.depth.nocolor.format.d32_sfloat_s8_uint_separate_layouts.compare_ops.* Tests: dEQP-VK.dynamic_state.ds_state.depth_bounds_1 Tests: dEQP-VK.dynamic_state.ds_state.depth_bounds_2 Tests: dEQP-VK.rasterization.frag_side_effects.color_at_end.depth_bounds Tests: dEQP-VK.rasterization.frag_side_effects.color_at_beginning.depth_bounds Bug: b/181656417 Change-Id: I50076834afa21f5b93e59b27a5438ba26f8008c8 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53888 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Alexis Hétu <sugoi@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
SwiftShader's OpenGL ES support is deprecated in favor of the Vulkan implementation, with ANGLE providing backward compatibility for GLES use cases. There are no known uses of our OpenGL ES 1.1 implementation left, so this change removes its code entirely. Bug: b/147516027 Change-Id: I72bcd7a648df435bd5c00caf3b4bb35965a0c116 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53909 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 09 Apr, 2021 1 commit
-
-
Nicolas Capens authored
Both the CMake and Android build targets are removed. This change leaves the actual code in place for now, to have smaller revert in case we need OpenGL ES 1.1 a little longer. Bug: b/147516027 Change-Id: I0ac044e61a601e43fbd7f727db2bfe7e9a4cabb3 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53908 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 29 Mar, 2021 1 commit
-
-
Nicolas Capens authored
To run dEQP tests we previously either had to install the Vulkan Loader and configure it to find the SwiftShader Vulkan ICD, or manually copy over the library. This change introduces the SWIFTSHADER_VULKAN_API_LIBRARY_INSTALL_PATH environment variable, which can be set to a path where the API library should be copied to. When used with dEQP it ensures we always test with the last build, instead of the path provided in the JSON file used by the Vulkan loader. Note this is only meant as a convenience for SwiftShader development. It shouldn't be used as a substitute for installing the ICD for system-wide usage. The latter should probably use CMAKE_INSTALL_PREFIX instead, but there are no known use cases yet for installing SwiftShader as the system-level driver, through the CMake build. Bug: b/149486511 Change-Id: I5ec9d669967ba0c05a763263605ee0ad5cfd505e Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53768 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 26 Mar, 2021 1 commit
-
-
SwiftShader Regression Bot authored
Reactor backend: Subzero Change-Id: Ie2089b841cc28f7f32fbb2c5f9994bb133350a86 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53828 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 25 Mar, 2021 2 commits
-
-
Jamie Madill authored
Some of ANGLE's GLES traces currently require a higher limit. Bug: b/183524100 Change-Id: Id8d9df4318292b2f8ae2fdf5b1e1349ed7c92d48 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53808 Presubmit-Ready: Jamie Madill <jmadill@chromium.org> Kokoro-Result: kokoro <noreply+kokoro@google.com> Commit-Queue: Jamie Madill <jmadill@chromium.org> Tested-by:
Jamie Madill <jmadill@chromium.org> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
SwiftShader Regression Bot authored
Reactor backend: LLVM Change-Id: Ibf537f9927de61df3269f67af444de9851738281 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53728Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 24 Mar, 2021 1 commit
-
-
Nicolas Capens authored
Image copy operations on compressed formats must have dimensions that are multiples of the block dimensions, unless the extent dimension + its corresponding offset is equal to the image subresource dimension. Bug: b/168025369 Change-Id: I3e77bfefe78347d4635128ece10f9d48aef40daa Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/48188Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Sean Risser <srisser@google.com> Commit-Queue: Alexis Hétu <sugoi@google.com>
-
- 17 Mar, 2021 1 commit
-
-
SwiftShader Regression Bot authored
Reactor backend: Subzero Change-Id: Ifbf27d8a34f7e0f23db50b0e3b88118dda0b7dd5 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53628Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 16 Mar, 2021 1 commit
-
-
Nicolas Capens authored
The spec states that "If queries are used while executing a render pass instance that has multiview enabled, the query uses N consecutive query indices in the query pool (starting at query) where N is the number of bits set in the view mask in the subpass the query is used in. How the numerical results of the query are distributed among the queries is implementation-dependent. For example, some implementations may write each view’s results to a distinct query, while other implementations may write the total result to the first query and write zero to the other queries." This wasn't working properly for occlusion queries, but we missed it because dEQP doesn't provide coverage for this case if timestamp queries are not supported. This change fixes it for both query types. Note that for occlusion queries we write the total result to the first query, and set the remaining query results to 0, as explicitly allowed by the spec. For timestamp queries each query result is a valid timestamp (note that the spec also allows for only the first query to be a timestamp, while the remaining ones are zero). Bug: b/142643809 Change-Id: I531248c2822c5f68d8636d4a3d153082c48cac1d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53668 Presubmit-Ready: Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com>
-
- 15 Mar, 2021 1 commit
-
-
Alistair Delva authored
If ANDROID_HOST_BUILD or ANDROID_NDK_BUILD is set, PR_SET_VMA_ANON_NAME may not be available. Disable it on such builds. Bug: b/171498948 Bug: b/174801963 Change-Id: Ia9d9ddbe29a812d678263e5f217f3e5037fa14f9 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53648 Presubmit-Ready: Alistair Delva <adelva@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Jason Macnak <natsu@google.com> Commit-Queue: Jason Macnak <natsu@google.com>
-
- 13 Mar, 2021 1 commit
-
-
Nicolas Capens authored
Fuchsia only allows access to the ICD's functions, through the Vulkan Loader interface functions. Exporting this function was copied from the android_vk_swiftshader.lds file, but it has been removed from the latter due to causing direct access to methods that should have an overridden implementation. Similar issues are likely to occur on Fuchsia if we keep this function exported. Bug: b/148822450 Change-Id: I12f2dad933abcd9dbf89518ac5714b9f936419e4 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53609 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
David Turner <digit@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 12 Mar, 2021 5 commits
-
-
Nicolas Capens authored
Android only allows access to the ICD's functions, through the Vulkan Loader interface functions. This was causing direct access to vkGetPhysicalDeviceSurfaceFormatsKHR, while Android's libvulkan must override it to provide an implementation based on AHardwareBuffer, which affects things like wide-gamut support. Bug: b/182576189 Bug: b/148822450 Change-Id: I64fd5a601f92beca186696d2cd09eee1a09b8ce9 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53608Reviewed-by:
Jason Macnak <natsu@google.com> Reviewed-by:
Chris Forbes <chrisforbes@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
Jason Macnak authored
... by casting semaphore to a VkBinarySemaphore. Bug: b/147738281 Test: build and launch Cuttlefish in AOSP Change-Id: I3766cb0fb8bf029c426d43c12cc6754632edcb2b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53588Tested-by:
Jason Macnak <natsu@google.com> Presubmit-Ready: Jason Macnak <natsu@google.com> Commit-Queue: Jason Macnak <natsu@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Jason Macnak authored
Bug: b/182563883 Bug: b/182249080 Test: launch Cuttlefish w/ SwANGLE Test: cts -m CtsGraphicsTestCases -t MediaVulkanGpuTest#testMediaImportAndRendering Test: cts -m CtsMediaTestCases -t DecodeEditEncodeTest#testVideoEdit720p Change-Id: I2a2056992a1b1bf6085788093f809e1d67289781 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53568 Commit-Queue: Jason Macnak <natsu@google.com> Tested-by:Jason Macnak <natsu@google.com> Presubmit-Ready: Jason Macnak <natsu@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
Nicolas Capens authored
This update advances dEQP to a revision after version 1.2.5.2 is merged into the master branch. It includes the fix for b/180025687 as well as two new timeline semaphore tests. Other notable tests since the last update: - Decrease required subgroup size (https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/2698) - Test negative depthBiasClamp values (https://gitlab.khronos.org/Tracker/vk-gl-cts/-/issues/2493) Tests: dEQP-VK.* Change-Id: I502507c33b7a3f1145bfc25401757de3a4ac231d Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53428Tested-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com>
-
SwiftShader Regression Bot authored
Reactor backend: Subzero Change-Id: Ibd9498de9a6da9a3293ae53c412c98031852b322 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53448 Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Tested-by:
Nicolas Capens <nicolascapens@google.com>
-
- 11 Mar, 2021 2 commits
-
-
Nicolas Capens authored
This change set VkQueueFamilyProperties::timestampValidBits to non-zero (64) to indicate support for timestamps. It also enables the timestampComputeAndGraphics feature to indicate that all graphics and compute queues (we only have a single one at the moment) support timestamp queries. Note that applications often check this aggregate flag instead of the individual queue family properties. timestampPeriod was lowered from 60 to 1, since we're writing timestamps with nanosecond granularity. Actually obtaining the time was already in place, see QueryPool::writeTimestamp(), but it didn't put the query in the 'available' state. The clock was replaced with std::chrono::steady_clock, which typically provides higher resolution than system_clock [1]. While it doesn't offer wall clock related time, this is not a requirement of Vulkan timestamps. Query::INVALID_TYPE was eliminated. Queries belong to a query pool which takes a valid type at construction. This also allowed to eliminate Query::prepare(). [1] https://www.modernescpp.com/index.php/the-three-clocks Bug: b/142643809 Tests: dEQP-VK.pipeline.timestamp.* Change-Id: Icb7c8c5ed78052eba9df630a4c1cb450bda7f85b Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53488 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>
-
Sean Risser authored
Also update the unittests to expect version 1.2. Bug: b/147825369 Tests: dEQP-VK.* Change-Id: Ib3bb07662140fa976ec2532124ab2d7337f34c55 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/47348Reviewed-by:
Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Alexis Hétu <sugoi@google.com> Tested-by:
Sean Risser <srisser@google.com> Commit-Queue: Sean Risser <srisser@google.com>
-
- 10 Mar, 2021 1 commit
-
-
Sean Risser authored
Vulkan 1.2 added several entry points, and even if SwiftShader doesn't support the features that introduced them, dEQP requires they be implemented regardless. Test: dEQP-VK.api.version_check.entry_points Bug: b/182287812 Change-Id: I0d90532e8e1508b71abc39c723167d9586d2cb84 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53468 Commit-Queue: Sean Risser <srisser@google.com> Tested-by:
Sean Risser <srisser@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-
- 08 Mar, 2021 1 commit
-
-
Sean Risser authored
Vulkan 1.2 requires that all implementations support all structs made core by the extension. Tests: dEQP-VK.api.info.get_physical_device_properties2.features Bug: b/181875303 Change-Id: Ib9f307778f77c135bb7415231f7b152b2ea5b06a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/53388 Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by:
Sean Risser <srisser@google.com> Commit-Queue: Nicolas Capens <nicolascapens@google.com> Reviewed-by:
Nicolas Capens <nicolascapens@google.com>
-