Roll third_party/googletest/ 389cb68b8..f3ef7e173 (40 commits)389cb68b87..f3ef7e173f
$ git log 389cb68b8..f3ef7e173 --date=short --no-merges --format='%ad %ae %s' 2021-02-04 absl-team Googletest export 2021-02-03 dmauro Googletest export 2021-02-03 absl-team Googletest export 2021-02-02 absl-team Googletest export 2021-02-02 absl-team Googletest export 2021-02-02 absl-team Googletest export 2021-02-02 dmcardle Googletest export 2021-02-02 absl-team Googletest export 2021-02-01 absl-team Googletest export 2021-01-27 absl-team Googletest export 2021-01-27 absl-team Googletest export 2021-01-26 absl-team Googletest export 2021-01-26 absl-team Googletest export 2021-01-25 absl-team Googletest export 2021-01-25 absl-team Googletest export 2021-01-22 absl-team Googletest export 2021-01-20 absl-team Googletest export 2021-01-20 ofats Googletest export 2021-01-19 absl-team Googletest export 2021-01-19 absl-team Googletest export 2021-01-19 krzysio Googletest export 2021-01-19 absl-team Googletest export 2021-01-16 dreamer.tan Fix link to Google Test Primer 2021-01-15 absl-team Googletest export 2021-01-15 absl-team Googletest export 2021-01-14 absl-team Googletest export 2021-01-14 absl-team Googletest export 2021-01-10 krystian.kuzniarek fix a broken link 2021-01-13 dmauro Googletest export 2021-01-13 dmauro Googletest export 2021-01-13 absl-team Googletest export 2021-01-08 absl-team Googletest export 2021-01-07 absl-team Googletest export 2021-01-05 absl-team Googletest export 2021-01-05 absl-team Googletest export 2021-01-05 absl-team Googletest export 2020-12-29 absl-team Googletest export 2021-01-06 davidben Restore GTEST_ATTRIBUTE_PRINTF_ on ColoredPrintf 2021-01-03 krystian.kuzniarek remove explicit function overloads of CmpHelper?? for BiggestInt arguments 2020-12-25 mattias.ellert Fix gtest-help-test failure on GNU/kFreeBSD Created with: roll-dep third_party/googletest Roll third_party/spirv-headers/ faa570afb..75b30a659 (4 commits)faa570afbc..75b30a659c
$ git log faa570afb..75b30a659 --date=short --no-merges --format='%ad %ae %s' 2020-08-19 jason Add header changes for SPV_EXT_shader_atomic_float_min_max 2021-01-27 jason.ekstrand Re-run buildSpvHeaders to fix indentation 2021-01-19 dneto Header generator: Check enumerant ordering 2021-01-05 ben.ashbaugh add function control bitfield reservation section reserve bit 16 for an upcoming Intel extension Created with: roll-dep third_party/spirv-headers Roll third_party/gpuweb-cts/ 89ba81c39..d836e71f2 (20 commits)89ba81c395..d836e71f29
$ git log 89ba81c39..d836e71f2 --date=short --no-merges --format='%ad %ae %s' 2021-02-11 corentin Implement some of api:validation:vertex_state (#461) 2021-02-10 kainino standardizeExtent3D 2021-02-10 kainino factor out makeBufferWithContents 2021-02-10 kainino add more texture format subtypes 2021-02-09 kainino roll types 2021-02-10 kainino renames in operation test helpers 2021-02-03 kainino use new helpers, subcases, selectDevice in operation tests 2021-02-03 kainino [trivial] Move helpers to util/texture/image_copy.ts 2021-02-10 jamesprice.dev Remove explicit storage class from samplers/textures (#464) 2021-02-08 enrico.galli Add button to print creation stack to console in /standalone/ (#457) 2021-02-08 corentin Update the test plan for validation/vertex_state (#458) 2021-02-05 shrekshao Update wgsl comments from # to // (#456) 2021-02-04 kainino Use subcases in copyImageBitmapToTexture tests (#453) 2021-02-04 kainino Update copyBetweenLinearDataAndTexture tests for new bytesPerRow/rowsPerImage rules (#452) 2021-02-03 kainino fix "INFO: subcase:" prints (#454) 2021-02-01 9856269+sarahM0 [wgsl] validation v-0040: uniform and storage buffer are declared with group and binding decorations. (#428) 2021-02-01 kainino Loosen precision in multisample resolve operation test (#446) 2021-02-01 shrekshao Add sampler anisotropy tests (#437) 2021-02-01 tojiro Update defaultQueue->queue, OUTPUT_ATTACHMENT->RENDER_ATTACHMENT to match latest spec (#449) 2021-02-01 kainino add todos in createView tests (#450) Created with: roll-dep third_party/gpuweb-cts Roll third_party/spirv-tools/ 297723d75..cfa1dadb1 (6 commits)297723d75a..cfa1dadb1e
$ git log 297723d75..cfa1dadb1 --date=short --no-merges --format='%ad %ae %s' 2021-02-10 dj2 Update a few virtuals to overrides. (#4143) 2021-02-05 46493288+sfricke-samsung spriv-val: Vulkan image gather constant component (#4133) 2021-02-05 46493288+sfricke-samsung spirv-val: Fix/Label UniformConstant VUID (#4134) 2021-02-05 46493288+sfricke-samsung spirv-val: Add Vulkan Invariant Decoration VUID (#4132) 2021-02-02 46493288+sfricke-samsung spirv-val: label tests for VUID 04657 (#4119) 2021-02-01 46493288+sfricke-samsung spirv-val: Add Vulkan PSB64 convert VUID (#4122) Created with: roll-dep third_party/spirv-tools Change-Id: I5632e3eed6d8e8731faeb4800e903a8893a60f9f Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/41560 Commit-Queue: dan sinclair <dsinclair@chromium.org> Commit-Queue: Ryan Harrison <rharrison@chromium.org> Auto-Submit: dan sinclair <dsinclair@chromium.org> Reviewed-by: Ryan Harrison <rharrison@chromium.org>
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.