commit | ecfa23f7952a2a20b7c558fd7dd7fa14a1a27e6b | [log] [tgz] |
---|---|---|
author | sugoi1 <[email protected]> | Fri Feb 18 10:27:31 2022 -0500 |
committer | sugoi1 <[email protected]> | Fri Feb 18 10:27:35 2022 -0500 |
tree | 1206f53502947b40daf80178d32f7a14a0c321e9 | |
parent | c2e6e7651f1be4fb72dcde307a25617d75cf781b [diff] | |
parent | b398bf367a4fc84d64cf1a22e94e6cdb29eb02be [diff] |
Update SPIR-V Tools to d18d0d92e Changes: d18d0d92e Optimize DefUseManager allocations (#4709) a123632ed Optimize Type::HashValue (#4707) 471428a04 spirv-opt: Add OpExecutionModeId support (#4719) 72e4475b4 Handle propagation of arrays with decorations (#4717) 899e53a1d Bump pathval from 1.1.0 to 1.1.1 in /tools/sva (#4716) 53078eec1 Add OpModuleProcessed to debug opcode (#4694) 0ad83f913 spirv-diff: Match OpSpecConstantComposite correctly (#4704) 940127a77 avoid unnecessary reallocations in GetOperandConstants (#4708) 44923beb5 Optimize Instruction::Instruction (#4705) a383c476e Remove reference to protobuf internals from fuzzers (#4701) ff91f9449 [spirv-val] Allow 0 Component Count for DebugTypeArray for Shader (#4706) f182d0205 Generalize the copyright check (#4702) 9fe41e60d Update test for parsing memory access masks (#4703) 332475dbc spirv-diff: Handle OpSpecConstant array sizes (#4700) 9beb54513 Stabilize the output of spirv-diff (#4698) 845f3efb8 Disable spirv-diff tests. (#4695) 5b371918b Have scalar replacement use undef instead of null (#4691) 7fa9e746e Introduce spirv-diff (#4611) b846f8f1d Complete handling of RayQueryKHR type (#4690) 20b122b2e Fix handling of Nontemporal image operand (#4692) a73e72435 Fix typo in comment: SPIR-V section for debug instructions (#4683) 65ecfd109 Fix various source comment (doxygen) typos (#4680) ff91b1c27 Start SPIRV-Tools v2022.2 b1877de5c Finalize SPIRV-Tools v2022.1 73735db94 Update CHANGES d492ebded Update DEPS file (#4688) 5003644f5 Fix roll_deps.sh (#4687) fb9a10cd4 spirv-opt: add pass to Spread Volatile semantics (#4667) 6938af7f8 Vulkan 1.3 (#4686) e8439c1c9 Avoid infinite recursion in comparison operators on SmallVector (#4681) 58d8b4e29 linker: Address conversion error introduced in earlier rework (#4685) c38495656 Linker improvements (#4679) 8a40f6de5 Add SPIR-V 1.6 support to wasm build (#4674) 42dc67891 Remove duplicated "the" from comments (#4666) 8fda47ca0 Disable a codepage warning on non-English OS (#4668) 05c839ca0 Improvements to disassembly within PassManager (#4677) b9e0e13d1 Remove misleading comment. (#4676) c5ee1bc7b Fix opt fuzzer test harness (#4670) 75e53b9f6 Avoid uninitialized access to instruction opcode (#4673) df2aad68b val: interface struct with builtins must be Block (#4665) 5d0e3240f Patch location validation VUIDs (#4664) 7d768812e Basic support for SPIR-V 1.6 (#4663) b7251d4fb reflect debug (#4662) 354a46a2a Rename strip reflect to strip nonsemantic (#4661) 4322c4b5a Refactor the disassembler code for reuse (#4616) f0351b7bc Avoid id bound errors during opt fuzzing (#4658) ff07cfd86 CMake iOS fixes: rely on CMAKE_SYSTEM_NAME and handle bundle installation (#4619) e45279259 Simplify the as fuzzer target (#4647) 315615887 optimizer: restore previous ABI. (#4653) a2260d3b1 Fix compilation (#4656) d240d0db9 fix file encoding (#4654) 6926c3d9a treat google user type as normal semantic google. It's a backport from diligent fork (#4632) b9e255b36 DefUseManager: rename comparison operators to 'CompareAndPrintDifferences' (#4624) f37551d2b Use a struct (instead of tuple), with explicit member names. (#4621) 438096e0c Fix kokoro asan run (#4655) 64328e94d Avoid an extra map lookup (#4623) 1ed847f43 Fix endianness of string literals (#4622) b162ede0d Use schema instead of reserved in header description (#4615) 1f3f0f185 Avoid uninitialised read when parsing hex float (#4646) f9bcc82ec Exit when ID overflow occurs in a fuzzing build (#4652) Commands: ./third_party/update-spirvtools.sh Bug: b/123642959
SwiftShader is a high-performance CPU-based implementation of the Vulkan graphics API12. Its goal is to provide hardware independence for advanced 3D graphics.
NOTE: SwiftShader's OpenGL ES implementation is no longer supported, and will be removed. The ANGLE project can be used to achieve a layered implementation of OpenGL ES (aka. “SwANGLE”).
SwiftShader libraries can be built for Windows, Linux, and macOS.
Android and Chrome (OS) build environments are also supported.
CMake
Install CMake for Linux, macOS, or Windows and use either the GUI or run the following terminal commands:
cd build cmake .. cmake --build . --parallel ./vk-unittests
Tip: Set the CMAKE_BUILD_PARALLEL_LEVEL environment variable to control the level of parallelism.
Visual Studio
To build the Vulkan ICD library, use Visual Studio 2019 to open the project folder and wait for it to run CMake. Open the CMake Targets View in the Solution Explorer and select the vk_swiftshader project to build it.
The SwiftShader libraries act as drop-in replacements for graphics drivers.
On Windows, most applications can be made to use SwiftShader's DLLs by placing them in the same folder as the executable. On Linux, the LD_LIBRARY_PATH
environment variable or -rpath
linker option can be used to direct applications to search for shared libraries in the indicated directory first.
In general, Vulkan applications look for a shared library named vulkan-1.dll
on Windows (vulkan-1.so
on Linux). This ‘loader’ library then redirects API calls to the actual Installable Client Driver (ICD). SwiftShader's ICD is named libvk_swiftshader.dll
, but it can be renamed to vulkan-1.dll
to be loaded directly by the application. Alternatively, you can set the VK_ICD_FILENAMES
environment variable to the path to vk_swiftshader_icd.json
file that is generated under the build directory (e.g. .\SwiftShader\build\Windows\vk_swiftshader_icd.json
). To learn more about how Vulkan loading works, read the official documentation here.
See CONTRIBUTING.txt for important contributing requirements.
The canonical repository for SwiftShader is hosted at: https://swiftshader.googlesource.com/SwiftShader.
All changes must be reviewed and approved in the Gerrit review tool at: https://swiftshader-review.googlesource.com. You must sign in to this site with a Google Account before changes can be uploaded.
Next, authenticate your account here: https://swiftshader-review.googlesource.com/new-password (use the same e-mail address as the one configured as the Git commit author).
All changes require a Change-ID tag in the commit message. A commit hook may be used to add this tag automatically, and can be found at: https://gerrit-review.googlesource.com/tools/hooks/commit-msg. You can execute git clone https://swiftshader.googlesource.com/SwiftShader
and manually place the commit hook in SwiftShader/.git/hooks/
, or to clone the repository and install the commit hook in one go:
git clone https://swiftshader.googlesource.com/SwiftShader && (cd SwiftShader && git submodule update --init --recursive third_party/git-hooks && ./third_party/git-hooks/install_hooks.sh)
On Windows, this command line requires using the Git Bash Shell.
Changes are uploaded to Gerrit by executing:
git push origin HEAD:refs/for/master
When ready, add a project owner as a reviewer on your change.
Some tests will automatically be run against the change. Notably, presubmit.sh verifies the change has been formatted using clang-format 11.0.1. Most IDEs come with clang-format support, but may require upgrading/downgrading to the clang-format version 11.0.0 release version (notably Chromium's buildtools has a clang-format binary which can be an in-between revision which produces different formatting results).
SwiftShader's Vulkan implementation can be tested using the dEQP test suite.
See docs/dEQP.md for details.
The third_party directory contains projects which originated outside of SwiftShader:
subzero contains a fork of the Subzero project. It originates from Google Chrome‘s (Portable) Native Client project. The fork was made using git-subtree to include all of Subzero’s history.
llvm-subzero contains a minimized set of LLVM dependencies of the Subzero project.
PowerVR_SDK contains a subset of the PowerVR Graphics Native SDK for running several sample applications.
googletest contains the Google Test project, as a Git submodule. It is used for running unit tests for Chromium, and Reactor unit tests. Run git submodule update --init
to obtain/update the code. Any contributions should be made upstream.
See docs/Index.md.
Public mailing list: [email protected]
General bug tracker: https://g.co/swiftshaderbugs
Chrome specific bugs: https://bugs.chromium.org/p/swiftshader
The SwiftShader project is licensed under the Apache License Version 2.0. You can find a copy of it in LICENSE.txt.
Files in the third_party folder are subject to their respective license.
The legal authors for copyright purposes are listed in AUTHORS.txt.
CONTRIBUTORS.txt contains a list of names of individuals who have contributed to SwiftShader. If you‘re not on the list, but you’ve signed the Google CLA and have contributed more than a formatting change, feel free to request to be added.