d836e71f29..dea8ed8c2b
$ git log d836e71f2..dea8ed8c2 --date=short --no-merges --format='%ad %ae %s' 2021-03-17 juanmihd Adding Context Creation Test for OffscreenCanvas (#505) 2021-03-16 lucacasonato add tools/deno runner (#503) 2021-03-16 yunchao.he Add validation tests about default values and lower bound for texture size (#495) 2021-03-16 2154796+austinEng Break gen_listings dep on ts-node / fast-glob. Add src_dir/out_dir args (#492) 2021-03-16 tojiro Updating CTS tests to use the new RenderPipelineDescriptor layout (#500) 2021-03-12 kainino Fix page loading on Safari (#502) 2021-03-12 tojiro Make the intent of the expand/collapse UI clearer using details elements (#501) 2021-03-12 yunchao.he Clean code for createTexture validation tests (#494) 2021-03-12 jiawei.shao Add validation tests for bufferSize in B2T T2B copies on depth stenci… (#484) 2021-03-11 kainino Update npm run dev -> npm start 2021-03-11 kainino Make reftests work with dev server, add npm start (#496) 2021-03-11 corentin Vertex state validation (#485) 2021-03-10 yunchao.he Add texture usage validation test for createTexture (#481) 2021-03-09 kainino Reuse interface in dataBytesForCopyOrOverestimate (#488) 2021-03-09 shrekshao Add test for zero sized index buffer out of bounds draw (#490) 2021-03-09 kainino Remove unnecessary step from wpt runtime (#487) 2021-03-09 2154796+austinEng Update plan for rendering/draw.spec.ts and indirect_draw.spec.ts (#480) 2021-03-09 yunchao.he Validate compressed texture (#483) 2021-03-09 hao.x.li Add validation tests for Timestamp Query (#469) 2021-03-08 yunchao.he Add sample count validation test for createTexture (#478) 2021-03-09 corentin Vertex state validation (#465) 2021-03-05 corentin Update to webgpu types 0.0.43 (#482) 2021-03-05 yunchao.he Add texture size tests for 1D/2D/3D textures (#479) 2021-03-04 jiawei.shao Add validation tests on B2T and T2B copies with depth stencil formats - Part I (#472) 2021-03-01 yunchao.he Bug fixes for new texture formats (#477) 2021-02-26 kainino Update pull_request_template.md 2021-02-25 kainino Update to types 0.0.41 (#476) 2021-02-25 yunchao.he update webgpu/types to 0.0.40 in order to add missing texture formats (#475) 2021-02-24 2154796+austinEng Fix incorrect indexing bug in resource_init/check_texture/by_sampling.ts (#474) 2021-02-24 kainino Fix copyBetweenLinearDataAndTexture operation tests (#468) 2021-02-24 yunchao.he update webgpu/types to 0.0.38 (#473) 2021-02-24 kainino Make ValidationTest.createEncoder work on any union of EncoderTypes (#471) 2021-02-24 enrico.galli Add operation tests for GPUQueue.writeBuffer() (#459) 2021-02-23 kainino Remove babel transforms for ?? .? &&= ||= (#470) 2021-02-22 shrekshao Some more cases for index_access.spec.ts (#466) 2021-02-19 kainino tweak maxMipLevelCount signature, move standardizeExtent3D inside 2021-02-19 kainino remove stale test case 2021-02-19 yunchao.he Address Kai's feedback: use standardizeExtent3D func, calculate valid/invalid mipLevelCount, etc. 2021-02-17 yunchao.he Add a function maxMipLevelCount() to calculate max mip level count 2021-02-17 yunchao.he Addressed feedback from Kai 2021-02-11 yunchao.he Address feedback from Kai 2021-02-03 yunchao.he Add validation tests for mipLevels for texture creation Created with: roll-dep third_party/gpuweb-cts Roll third_party/spirv-tools/ cfa1dadb1..4f498774d (30 commits)cfa1dadb1e..4f498774db
$ git log cfa1dadb1..4f498774d --date=short --no-merges --format='%ad %ae %s' 2021-03-17 49500233+timvpGoogle Roll deps (#4185) 2021-03-17 46493288+sfricke-samsung spirv-val: Add Vulkan Execution Scope checks (#4183) 2021-03-17 alastair.donaldson spirv-fuzz: Locate instructions more efficiently (#4189) 2021-03-17 alastair.donaldson spirv-fuzz: Make adding equation instructions more efficient (#4190) 2021-03-17 alastair.donaldson spirv-fuzz: Make PermutePhiOperands more efficient (#4191) 2021-03-16 jaebaek Accept OpImageTexelPointer user in scalar-replacement (#4187) 2021-03-16 46493288+sfricke-samsung spirv-val: Add Vulkan Invocation Sematics check (#4182) 2021-03-16 46493288+sfricke-samsung spirv-val: Label VUID 04634 (#4181) 2021-03-16 dneto Support SPV_KHR_linkonce_odr, SPV_KHR_expect_assume (#4161) 2021-03-14 alastair.donaldson spirv-fuzz: Avoid invalidating analyses (#4176) 2021-03-14 vasniktel spirv-fuzz: Add buggy test (#4180) 2021-03-12 cwallez Remove usage of std::iterator. (#4171) 2021-03-11 cwallez BUILD.gn: fix typo for 'cflags' (#4169) 2021-03-10 cwallez Suppress warning (#4168) 2021-03-10 alastair.donaldson spirv-fuzz: Avoid unnecessary dependency (#4165) 2021-03-10 dgkoch Add `void` in function declaration to keep some compilers happy (#4160) 2021-03-09 cwallez Fix -Wextra-semi-stmt -Wsuggest-destructor-override -Wdeprecated-copy-dtor (#4164) 2021-03-08 46493288+sfricke-samsung spirv-val: Vulkan 64-bit OpAtomicStore check (#4163) 2021-03-05 vasniktel spirv-fuzz: Fix the bug in TransformationReplaceBranchFromDeadBlockWithExit (#4140) 2021-03-05 vasniktel spirv-fuzz: Fix PartialCount (#4159) 2021-03-03 afd spirv-fuzz: Handle Vulkan SPIR-V versions (#4156) 2021-03-03 vasniktel spirv-fuzz: Add persistent state to the fuzzer (#4137) 2021-03-02 alanbaker Require an OpSelectionMerge before an OpSwitch (#4154) 2021-03-01 stevenperron Use standard function to get stdin to binary mode. (#4141) 2021-02-26 bclayton Fixes for the vscode language server extension (#4150) 2021-02-19 atte.seppala spirv-opt: Don't call GenerateCopy for mismatched image types (#4126) 2021-02-18 jaebaek Start SPIRV-Tools v2021.0 2021-02-18 jaebaek Finalize SPIRV-Tools v2020.7 2021-02-16 jaebaek Update CHANGES 2021-02-11 greg Generate differentiated error codes for buffer oob checking (#4144) Created with: roll-dep third_party/spirv-tools Roll third_party/spirv-headers/ 75b30a659..bcf55210f (7 commits)75b30a659c..bcf55210f1
$ git log 75b30a659..bcf55210f --date=short --no-merges --format='%ad %ae %s' 2020-07-03 dneto Support SPV_KHR_expect_assume 2020-07-03 dneto Support SPV_KHR_linkonce_odr 2021-03-01 alanbaker Change operand name in OpReadClockKHR to match extension 2021-02-13 dmalyshau Add Naga as SPIR-V generation tool 2021-01-27 ben.ashbaugh add generated headers 2021-01-27 ben.ashbaugh add None as a possible value for DebugInfoFlags 2020-11-05 orbea cmake: Install cmake files to CMAKE_INSTALL_DATADIR Created with: roll-dep third_party/spirv-headers Roll third_party/googletest/ f3ef7e173..b7d472f12 (36 commits)f3ef7e173f..b7d472f122
$ git log f3ef7e173..b7d472f12 --date=short --no-merges --format='%ad %ae %s' 2021-03-11 absl-team Googletest export 2021-03-11 absl-team Internal change 2021-03-10 absl-team Googletest export 2021-03-10 absl-team Googletest export 2021-03-09 absl-team Googletest export 2021-03-09 absl-team Googletest export 2021-03-08 absl-team Googletest export 2021-03-08 absl-team Googletest export 2021-03-05 absl-team Internal change 2021-03-04 absl-team Googletest export 2021-03-04 absl-team Googletest export 2021-03-02 absl-team Googletest export 2021-03-01 absl-team Googletest export 2021-02-25 absl-team Googletest export 2021-02-22 absl-team Googletest export 2021-02-25 be remove -Zi from MSVC compiler options 2020-12-24 N.Dekker overload PrintTo for std::type_info and std::type_index 2021-02-19 absl-team Googletest export 2021-02-18 absl-team Googletest export 2021-02-17 absl-team Googletest export 2021-02-17 absl-team Googletest export 2021-02-16 absl-team Googletest export 2021-02-12 absl-team Googletest export 2021-02-11 absl-team Googletest export 2021-02-11 absl-team Googletest export 2021-02-11 absl-team Googletest export 2021-02-10 absl-team Googletest export 2021-02-10 absl-team Googletest export 2021-02-10 absl-team Googletest export 2021-02-09 absl-team Googletest export 2021-02-09 absl-team Internal change 2021-02-09 absl-team Googletest export 2021-02-08 absl-team Googletest export 2021-02-05 absl-team Googletest export 2021-02-05 platisd Do not include void into mocked method arguments 2021-01-11 corentinmusard Simplify cmake install file Created with: roll-dep third_party/googletest Change-Id: Ib7e1e6a691d867188d0015e0852d881a4106c51e Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/44801 Auto-Submit: David Neto <dneto@google.com> Reviewed-by: Ben Clayton <bclayton@google.com> Reviewed-by: Ryan Harrison <rharrison@chromium.org> Commit-Queue: David Neto <dneto@google.com>
Tint
Tint is a compiler for the WebGPU Shader Language (WGSL).
This is not an officially supported Google product.
Requirements
- Git
- CMake (3.10.2 or later)
- Ninja (or other build tool)
- Python, for fetching dependencies
- depot_tools in your path
Build options
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)
Building
Tint uses Chromium dependency management so you need to install depot_tools and add it to your PATH.
Getting source & dependencies
# 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
Compiling using CMake + Ninja
mkdir -p out/Debug
cd out/Debug
cmake -GNinja ../..
ninja # or autoninja
Compiling using CMake + make
mkdir -p out/Debug
cd out/Debug
cmake ../..
make # -j N for N-way parallel build
Compiling using gn + ninja
mkdir -p out/Debug
gn gen out/Debug
autoninja -C out/Debug
Fuzzers on MacOS
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.
Checking [chromium-style] issues in CMake builds
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
Issues
Please file any issues or feature requests at https://bugs.chromium.org/p/tint/issues/entry
Contributing
Please see the CONTRIBUTING and CODE_OF_CONDUCT files on how to contribute to Tint.