commit | c9a3e47396784dd5e829d5765101d982707be093 | [log] [tgz] |
---|---|---|
author | dan sinclair <dsinclair@chromium.org> | Mon Oct 19 15:31:17 2020 +0000 |
committer | Commit Bot service account <commit-bot@chromium.org> | Mon Oct 19 15:31:17 2020 +0000 |
tree | 59983a6b099a70efc7aec16d6305d1b2efef7f2d | |
parent | 89042538376b59419d2b9d53c2e716ab1f1cf8d5 [diff] |
Roll Tint dependencies Roll third_party/spirv-tools/ 8a0ebd40f..7e1825a59 (96 commits) https://chromium.googlesource.com/external/github.com/KhronosGroup//SPIRV-Tools.git/+log/8a0ebd40f86d..7e1825a59619 $ git log 8a0ebd40f..7e1825a59 --date=short --no-merges --format='%ad %ae %s' 2020-10-19 afdx spirv-fuzz: Take care of OpPhi instructions when inlining (#3939) 2020-10-16 afdx spirv-fuzz: Fix to TransformationInlineFunction (#3913) 2020-10-16 afdx spirv-fuzz: Wrap early terminators before merging returns (#3925) 2020-10-16 jaebaek Add DebugValue for function param regardless of scope (#3923) 2020-10-16 afdx Temporary fix to make GoogleTest compile. (#3922) 2020-10-15 afdx spirv-fuzz: Lower probability of adding bit instruction synonyms (#3917) 2020-10-15 afdx spirv-fuzz: Fix handling of OpPhi in FlattenConditionalBranch (#3916) 2020-10-13 afdx spirv-fuzz: Avoid creating blocks without parents (#3908) 2020-10-13 afdx spirv-fuzz: Do not allow creation of constants of block-decorated structs (#3903) 2020-10-13 afdx spirv-fuzz: Fixes related to irrelevant ids (#3901) 2020-10-13 afdx spirv-fuzz: Fix to transformation that adds a synonym via a loop (#3898) 2020-10-13 afdx spirv-fuzz: Fix to duplicate region with selection (#3896) 2020-10-09 afdx spirv-fuzz: Do not expose synonym facts for non-existent ids (#3891) 2020-10-08 afdx spirv-fuzz: Do not add synonyms involving irrelevant ids (#3890) 2020-10-08 afdx spirv-fuzz: Do not replace irrelevant ids that are not in blocks (#3892) 2020-10-08 afdx spirv-fuzz: Wrap OpKill and similar in function calls (#3884) 2020-10-08 dj2 Update val to handle reversed instruction sections. (#3887) 2020-10-06 afdx spirv-fuzz: Replace dead-block terminators with OpKill etc. (#3882) 2020-10-06 vasniktel spirv-fuzz: TransformationPropagateInstructionDown (#3692) 2020-10-06 afdx spirv-fuzz: Transformation to add wrappers for OpKill and similar (#3881) 2020-10-06 afdx spirv-fuzz: Use overflow ids when duplicating regions (#3878) 2020-10-06 vasniktel spirv-fuzz: Fix rvalue references (#3883) 2020-10-02 afdx spirv-fuzz: Avoid using block-decorated structs in transformations (#3877) 2020-10-02 afdx spirv-fuzz: Use overflow ids when inlining functions (#3880) 2020-10-02 jaebaek Debug info preservation in convert-local-access-chains pass (#3835) 2020-10-02 vasniktel spirv-fuzz: Refactor fact manager tests (#3879) 2020-10-02 afdx spirv-fuzz: Integrate spirv-reduce with shrinker (#3849) 2020-10-02 afdx spirv-fuzz: Only recommend passes when a pass had an effect (#3863) 2020-10-02 stefano.milizia00 spirv-fuzz: Merge the return instructions in a function (#3838) 2020-10-01 jaebaek Debug info preservation in redundancy-elimination pass (#3839) 2020-10-01 jaebaek Debug info preservation in if-conversion pass (#3861) 2020-10-01 vasniktel spirv-fuzz: Refactor conditions in the fact manager (#3867) 2020-10-01 vasniktel spirv-fuzz: TransformationWrapRegionInSelection (#3674) 2020-10-01 afdx spirv-fuzz: Enable some passes with high probability (#3860) 2020-10-01 afdx spirv-fuzz: Do not add constants for Block-decorated structs (#3862) 2020-10-01 vasniktel spirv-fuzz: Fix to FuzzerPassFlattenConditionalBranches (#3865) 2020-09-30 vasniktel spirv-fuzz: Fix TransformationRecordSynonymousConstants (#3868) 2020-09-30 afdx spirv-fuzz: Fix flatten conditional branch transformation (#3859) 2020-09-29 afdx spirv-fuzz: Report fresh ids in transformations (#3856) 2020-09-28 dj2 [spirv-dis] Add some context comments to disassembly. (#3847) 2020-09-28 emaxx Fix use-after-move in val/validate.cpp (#3848) 2020-09-26 antonikarp spirv-fuzz: Fix bug in TransformationDuplicateRegionWithSelection (#3819) 2020-09-26 andreperezmaselco.developer spirv-fuzz: Support OpNot bit instruction case (#3841) 2020-09-25 afdx spirv-fuzz: Return IR and transformation context after replay (#3846) 2020-09-24 paulthomson spirv-fuzz: fix test (#3845) 2020-09-24 afdx spirv-fuzz: Use unique_ptr<FactManager> in TransformationContext (#3844) 2020-09-24 ehsannas Start SPIRV-Tools v2020.6 2020-09-24 ehsannas Finalize SPIRV-Tools v2020.5 2020-09-24 ehsannas Update CHANGES 2020-09-24 vasniktel spirv-fuzz: Support dead blocks in TransformationAddSynonym (#3832) 2020-09-24 vasniktel spirv-fuzz: Move IRContext parameter into constructor (#3837) 2020-09-24 Simran-B Add missing backticks around <result-id> (#3840) 2020-09-23 rharrison Validate SPIRV Version number when parsing binary header (#3834) 2020-09-23 stefanomil spirv-fuzz: Create synonym of int constant using a loop (#3790) 2020-09-22 58573781+richard-lunarg Fix compiler error on macOS with XCode12 (#3836) 2020-09-22 vasniktel spirv-fuzz: Handle OpPhis in TransformationInlineFunction (#3833) 2020-09-22 stevenperron Update CHANGES 2020-09-22 afdx spirv-fuzz: Refactor fuzzer, replayer and shrinker (#3818) 2020-09-18 afdx spirv-fuzz: Add pass recommendations (#3757) 2020-09-18 stefanomil spirv-fuzz: Consider all ids from dead blocks irrelevant (#3795) 2020-09-18 afdx Fix header guard macros (#3811) 2020-09-18 antonikarp spirv-fuzz: Fix TransformationDuplicateRegionWithSelection (#3815) 2020-09-17 46493288+sfricke-samsung spirv-val: Add DeviceIndex (#3812) 2020-09-16 rharrison Fix missed modification flagging (#3814) 2020-09-16 andreperezmaselco.developer spirv-fuzz: Use an irrelevant id for the unused components (#3810) 2020-09-16 stefanomil spirv-fuzz: Improvements to random number generation (#3809) 2020-09-16 greg Add buffer oob check to bindless instrumentation (#3800) 2020-09-16 vasniktel spirv-fuzz: Remove CanFindOrCreateZeroConstant (#3807) 2020-09-15 andreperezmaselco.developer spirv-fuzz: Add bit instruction synonym transformation (#3775) 2020-09-16 vasniktel spirv-fuzz: Skip unreachable blocks (#3729) 2020-09-15 afdx Fix build errors (#3804) 2020-09-15 vasniktel spirv-fuzz: Handle invalid ids in fact manager (#3742) 2020-09-15 vasniktel spirv-fuzz: Support memory instructions MoveInstructionDown (#3700) 2020-09-15 stefanomil spirv-fuzz: Pass submanagers to other submanagers when necessary (#3796) 2020-09-15 stefanomil spirv-fuzz: Transformation to flatten conditional branch (#3667) 2020-09-14 46493288+sfricke-samsung spirv-val: Add BaseInstance, BaseVertex, DrawIndex, and ViewIndex (#3782) 2020-09-14 dnovillo Properly mark IR changed if instruction folder creates more than one constant. (#3799) 2020-09-11 afdx Add missing file to BUILD.gn (#3798) 2020-09-11 antonikarp spirv-fuzz: Add TransformationDuplicateRegionWithSelection (#3773) 2020-09-11 afdx spirv-reduce: Support reducing a specific function (#3774) 2020-09-10 afdx spirv-reduce: Refactoring (#3793) 2020-09-10 afdx Favour 'integrity' over 'coherence' as a replacement for 'sanity'. (#3619) 2020-09-10 antonikarp spirv-fuzz: Fix header guards in transformations/fuzzer passes (#3784) 2020-09-10 paulthomson spirv-fuzz: Add SPIRV_FUZZ_PROTOC_COMMAND (#3789) 2020-09-10 paulthomson Add missing include (#3788) 2020-09-09 paulthomson Improve spirv-fuzz CMake code (#3781) 2020-09-08 stevenperron Allow SPV_KHR_8bit_storage extension. (#3780) 2020-09-08 stefanomil spirv-opt: Add function to compute nesting depth of a block (#3771) 2020-09-03 stefanomil spirv-fuzz: Transformation to convert OpSelect to conditional branch (#3681) 2020-09-02 46493288+sfricke-samsung spirv-val: Add Vulkan VUID labels to BuiltIn (#3756) 2020-09-02 vasniktel spirv-fuzz: Add support for BuiltIn decoration (#3736) 2020-09-02 stefanomil spirv-fuzz: Fix GetIdEquivalenceClasses (#3767) 2020-09-02 stefanomil spirv-fuzz: Replace id in OpPhi coming from a dead predecessor (#3744) 2020-09-01 stefanomil spirv-fuzz: Transformation to replace the use of an irrelevant id (#3697) 2020-09-01 vasniktel spirv-fuzz: TransformationMutatePointer (#3737) 2020-09-01 stefanomil spirv-fuzz: Compute interprocedural loop nesting depth of blocks (#3753) Created with: roll-dep third_party/spirv-tools Roll third_party/gpuweb-cts/ 40e337a38..2a53a9bd3 (61 commits) https://chromium.googlesource.com/external/github.com/gpuweb/cts.git/+log/40e337a38784..2a53a9bd3d45 $ git log 40e337a38..2a53a9bd3 --date=short --no-merges --format='%ad %ae %s' 2020-10-13 9856269+sarahM0 Update WGSL tests (#303) 2020-10-01 yunchao.he Fix a bug for texture usage validation in compute (#300) 2020-09-29 kainino Rename asyncReinitDeviceWithDescriptor -> selectDeviceOrSkipTestCase (#298) 2020-09-29 jiawei.shao Add tests about compressed texture formats in CopyT2T validation tests (#296) 2020-09-28 kainino Add cts.code-workspace for project-global settings. (#299) 2020-09-28 yunchao.he Test replaced bindings for texture usage validation in compute (#291) 2020-09-28 jiawei.shao Add .vscode/ to gitignore 2020-09-25 enrico.galli Moving createEncoder to ValidationTest (#293) 2020-09-25 kainino Enable WebGPU tests with descriptors (#294) 2020-09-24 shaobo.yan Validation tests for copyImageBitmapToTexture. (#285) 2020-09-23 jiawei.shao Add validation tests for CopyTextureToTexture - Part II (#287) 2020-09-21 yunchao.he Resource usage validation in compute (#288) 2020-09-18 kainino Allow per-test descriptions (#290) 2020-09-18 kainino Add a very lightweight preprocessor using JS template strings (#280) 2020-09-18 kainino Significantly speed up build by optimizing n^2 code (#289) 2020-09-15 enrico.galli Add debug groups and makers test (#286) 2020-09-12 jiawei.shao Add validation tests of CopyTextureToTexture - Part I (#284) 2020-09-09 yunchao.he Add texture usage validation scope test (#283) 2020-09-10 jiawei.shao Add operation tests of CopyBufferToBuffer (#282) 2020-09-08 yunchao.he Combine Texture subresource shapes/overlap with using bundle or not (#281) 2020-09-02 yunchao.he Add more texture usage validation tests: unused bindings (#274) 2020-08-28 yunchao.he Enhance texture usage validation tests (#273) 2020-08-27 dj2 Fix WGSL test syntax errors. (#277) 2020-08-25 44079328+kunalmohan Fix setScissorRect() validation (#276) 2020-08-20 tommek Copy between linear data and texture operation tests (#269) 2020-08-20 yunchao.he Add more tests for texture resource usage tracking in render (#260) 2020-08-19 fd Add w3c.json file for W3C tracking purpose 2020-08-19 kainino Revise README and include new guidelines for pull requests (#271) 2020-08-18 kainino Support JSON objects in param values (#270) 2020-08-16 kainino empty commit (#268) 2020-08-14 yunchao.he Add test for different read write usages combinations (#253) 2020-08-15 tommek Adding a TODO for copy between linear data and texture tests (#261) 2020-08-14 kainino Split IDL flags tests into one case per member; add QUERY_RESOLVE (#267) 2020-08-14 kainino Update types and split texture tables to accommodate compressed formats (#263) 2020-08-14 kainino Make jsUndefinedMagicValue less magic (#266) 2020-08-12 kainino standalone: use <pre> for descriptions (#259) 2020-08-13 jiawei.shao Add validation tests for CopyBufferToBuffer (#256) 2020-08-11 tommek Copy between linear data and texture validation tests (#255) 2020-08-10 44079328+kunalmohan Use Babel plugin to support Nullish Coalescing operator (#257) 2020-08-04 yunchao.he Add subresource usage validation tests for different shader stages (#254) 2020-07-31 yunchao.he Add texture subresource usage validation tests in render (#252) 2020-07-30 brandon1.jones Implement Render Pass Resolve Validation Tests (#250) 2020-07-27 brandon1.jones Implement RenderPass StoreOp Operation Tests (#243) 2020-07-27 yunchao.he Fixes about hasDynamicOffset and multisampled in BGL (#249) 2020-07-24 kainino Update to use new mapping primitives everywhere (#245) 2020-07-24 yunchao.he Refactor some validation tests in createBindGroupLayout (#244) 2020-07-24 kainino Represent undefined with a magic value in JSON (#247) 2020-07-23 68128706+cerisano Update README.md (#246) 2020-07-17 brandon1.jones RenderPass StoreOp Validation Tests (#241) 2020-07-17 kainino In params().combine() types, flatten unions of interfaces before merging them (#242) 2020-07-15 yunchao.he Add tests for bindGroupLayout's variables (#238) 2020-07-16 shaobo.yan CTS for CopyImageBitmap: test color conversion (#237) 2020-07-13 yunchao.he Add a test for minBufferBindingSize (#233) 2020-07-13 yunchao.he Update node_module/@webgpu/types to 0.0.27 (#235) 2020-07-10 yunchao.he Remove dynamic_set_to_true_is_allowed_only_for_buffers (#231) 2020-07-08 brandon1.jones Add Initial Coverage TODOs for Render Pass StoreOP (#227) 2020-07-07 kainino Update README.md (#229) 2020-07-06 yunchao.he Move visibility_and_dynamic_offset to createBindGroupLayout tests (#224) 2020-07-06 brandon1.jones Minor Improvements To Setup Instructions (#226) 2020-06-29 kainino Travis deploy master->main (#222) 2020-06-23 44079328+kunalmohan Use babel plugin to prevent optional chaining in generated code (#221) Created with: roll-dep third_party/gpuweb-cts Roll third_party/googletest/ df6b75949..3c95bf552 (35 commits) https://chromium.googlesource.com/external/github.com/google/googletest.git/+log/df6b75949b1e..3c95bf552405 $ git log df6b75949..3c95bf552 --date=short --no-merges --format='%ad %ae %s' 2020-10-15 dmauro Googletest export 2020-10-14 absl-team Googletest export 2020-10-14 dmauro Googletest export 2020-10-14 dmauro Googletest export 2020-10-14 absl-team Googletest export 2020-10-14 dmauro Googletest export 2020-10-14 absl-team Googletest export 2020-10-13 dmauro Googletest export 2020-10-13 dmauro Googletest export 2020-10-13 absl-team Googletest export 2020-10-13 absl-team Googletest export 2020-10-09 ofats Googletest export 2020-10-09 absl-team Googletest export 2020-10-08 absl-team Googletest export 2020-10-12 peternewman Fix a typo 2020-10-07 pravin1992 Issue 2135: Change template args in NiceMock, NaggyMock and StrictMock from A1, A2, ... to TArg1, TArg2,... to avoid clash with legacy header files 2020-09-29 absl-team Googletest export 2020-10-01 63450189+ranodeepbanerjee A slight Gramatical change. 2020-09-29 dmauro Googletest export 2020-09-29 absl-team Googletest export 2020-09-25 absl-team Googletest export 2020-09-27 56075233+keshavgbpecdelhi Update cook_book.md 2020-09-23 absl-team Googletest export 2020-09-23 absl-team Googletest export 2020-09-21 absl-team Googletest export 2020-09-24 thomas.barbier Fix warning maybe-uninitialized 2020-09-18 absl-team Googletest export 2020-09-17 absl-team Googletest export 2020-09-18 63900998+JethroSama Update README.md, added missing 'a' 2020-09-08 absl-team Googletest export 2020-09-02 dmauro Googletest export 2020-09-01 absl-team Googletest export 2020-09-01 absl-team Googletest export 2020-08-25 27jf Add timestamp to in old method mock macro guide 2020-05-05 igor.n.nazarenko Detect proto messages based on presense of DebugString. Created with: roll-dep third_party/googletest Roll third_party/spirv-headers/ 3fdabd0da..c43a43c7c (4 commits) https://chromium.googlesource.com/external/github.com/KhronosGroup/SPIRV-Headers.git/+log/3fdabd0da293..c43a43c7cc3a $ git log 3fdabd0da..c43a43c7c --date=short --no-merges --format='%ad %ae %s' 2020-10-12 hwguy.siplus Register the Xenia emulator as a generator (#171) 2020-09-27 atyuwen Register the Messiah SPIR-V CodeGen (#169) 2020-09-10 syoussefi Register the ANGLE compiler (#168) 2020-09-08 cepheus Rebuild of latest headers, which slightly moves OpTerminateInvocation Created with: roll-dep third_party/spirv-headers Change-Id: Id23cf07aedff60a09d068fd145c2dcfc88aea95b Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/30460 Commit-Queue: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Tint is a compiler for the WebGPU Shader Language (WGSL).
This is not an officially supported Google product.
TINT_BUILD_SPV_READER
: enable the SPIR-V input reader (off by default)TINT_BUILD_WGSL_READER
: enable the WGSL input reader (on by default)TINT_BUILD_SPV_WRITER
: enable the SPIR-V output writer (on by default)TINT_BUILD_WGSL_WRITER
: enable the WGSL output writer (on by default)TINT_BUILD_FUZZERS
: enable building fuzzzers (off by default)Tint uses Chromium dependency management so you need to install depot_tools and add it to your PATH.
# Clone the repo as "tint" git clone https://dawn.googlesource.com/tint tint && cd tint # Bootstrap the gclient configuration cp standalone.gclient .gclient # Fetch external dependencies and toolchains with gclient gclient sync
mkdir -p out/Debug cd out/Debug cmake -GNinja ../.. ninja # or autoninja
mkdir -p out/Debug cd out/Debug cmake ../.. make # -j N for N-way parallel build
mkdir -p out/Debug gn gen out/Debug autoninja -C out/Debug
If you are attempting fuzz, using TINT_BUILD_FUZZERS=ON
, the version of llvm in the XCode SDK does not have the needed libfuzzer functionality included.
The build error that you will see from using the XCode SDK will look something like this:
ld: file not found:/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/11.0.0/lib/darwin/libclang_rt.fuzzer_osx.a
The solution to this problem is to use a full version llvm, like what you would get via homebrew, brew install llvm
, and use something like CC=<path to full clang> cmake ..
to setup a build using that toolchain.
The gn based work flow uses the Chromium toolchain for building in anticipation of integration of Tint into Chromium based projects. This toolchain has additional plugins for checking for style issues, which are marked with [chromium-style] in log messages. This means that this toolchain is more strict then the default clang toolchain.
In the future we will have a CQ that will build this work flow and flag issues automatically. Until that is in place, to avoid causing breakages you can run the [chromium-style] checks using the CMake based work flows. This requires setting CC
to the version of clang checked out by gclient sync
and setting the TINT_CHECK_CHROMIUM_STYLE
to ON
.
mkdir -p out/style cd out/style cmake ../.. CC=../../third_party/llvm-build/Release+Asserts/bin/clang cmake -DTINT_CHECK_CHROMIUM_STYLE=ON ../../ # add -GNinja for ninja builds
Please file any issues or feature requests at https://bugs.chromium.org/p/tint/issues/entry
Please see the CONTRIBUTING and CODE_OF_CONDUCT files on how to contribute to Tint.