Skip to content

Commit

Permalink
tint->dawn: Move src/dawn_tests -> src/dawn/tests
Browse files Browse the repository at this point in the history
Bug: dawn:1275
Change-Id: I79f2aeb0c54a74dd5becd90c46792705a28e87da
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/79100
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
  • Loading branch information
austinEng authored and Dawn LUCI CQ committed Feb 9, 2022
1 parent 962c4ea commit 189b0ce
Show file tree
Hide file tree
Showing 248 changed files with 943 additions and 896 deletions.
3 changes: 2 additions & 1 deletion BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ group("all") {
deps = [
"src/dawn/fuzzers",
"src/dawn/native:webgpu_dawn",
"src/dawn/tests",
"src/fuzzers/dawn:dawn_fuzzers",
"src/tests:dawn_tests",
"src/tests", # TODO(crbug.com/dawn/1275) - remove
]
if (dawn_standalone) {
deps += [ "samples/dawn:samples" ]
Expand Down
12 changes: 6 additions & 6 deletions docs/dawn/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ This repository contains the implementation of Dawn, which is itself composed of
- [`fuzzers`](../src/dawn/fuzzers): various fuzzers for Dawn that are running in [Clusterfuzz](https://google.github.io/clusterfuzz/).
- [`native`](../src/dawn/native): code for the implementation of WebGPU on top of graphics APIs. Files in this folder are the "frontend" while subdirectories are "backends".
- `<backend>`: code for the implementation of the backend on a specific graphics API, for example `d3d12`, `metal` or `vulkan`.
- [`tests`](../src/dawn/tests):
- [`end2end`](../src/dawn/tests/end2end): tests for the execution of the WebGPU API and require a GPU to run.
- [`perf_tests`](../src/dawn/tests/perf_tests): benchmarks for various aspects of Dawn.
- [`unittests`](../src/dawn/tests/unittests): code unittests of internal classes, but also by extension WebGPU API tests that don't require a GPU to run.
- [`validation`](../src/dawn/tests/unittests/validation): WebGPU validation tests not using the GPU (frontend tests)
- [`white_box`](../src/dawn/tests/white_box): tests using the GPU that need to access the internals of `dawn_native` or `dawn_wire`.
- [`wire`](../src/dawn/wire): code for an implementation of WebGPU as a client-server architecture.
- [`utils`](../src/dawn/utils): helper code to use Dawn used by tests and samples but disallowed for `dawn_native` and `dawn_wire`.
- [`platform`](../src/dawn/platform): definition of interfaces for dependency injection in `dawn_native` or `dawn_wire`.
- [`include`](../src/include): public headers with subdirectories for each library. Note that some headers are auto-generated and not present directly in the directory.
- [`tests`](../src/tests):
- [`end2end`](../src/tests/end2end): tests for the execution of the WebGPU API and require a GPU to run.
- [`perf_tests`](../src/tests/perf_tests): benchmarks for various aspects of Dawn.
- [`unittests`](../src/tests/unittests): code unittests of internal classes, but also by extension WebGPU API tests that don't require a GPU to run.
- [`validation`](../src/tests/unittests/validation): WebGPU validation tests not using the GPU (frontend tests)
- [`white_box`](../src/tests/white_box): tests using the GPU that need to access the internals of `dawn_native` or `dawn_wire`.
- [`third_party`](../third_party): directory where dependencies live as well as their buildfiles.

## Dawn Native (`dawn_native`)
Expand Down
2 changes: 1 addition & 1 deletion docs/dawn/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ A Chromium checkout is required for the highest optimization flags. It is possib
- Step: A group of Iterations run together. The number of `iterationsPerStep` is provided to the constructor of `DawnPerfTestBase`.
- Trial: A group of Steps run consecutively. `kNumTrials` are run for each test. A Step in a Trial is run repetitively for approximately `kCalibrationRunTimeSeconds`. Metrics are accumlated per-trial and reported as the total time divided by `numSteps * iterationsPerStep`. `maxStepsInFlight` is passed to the `DawnPerfTestsBase` constructor to limit the number of Steps pipelined.

(See [`//src/tests/perf_tests/DawnPerfTest.h`](https://cs.chromium.org/chromium/src/third_party/dawn/src/tests/perf_tests/DawnPerfTest.h) for the values of the constants).
(See [`//src/dawn/tests/perf_tests/DawnPerfTest.h`](https://cs.chromium.org/chromium/src/third_party/dawn/src/dawn/tests/perf_tests/DawnPerfTest.h) for the values of the constants).

### Metrics

Expand Down
2 changes: 1 addition & 1 deletion src/dawn/common/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,8 @@ config("internal_config") {
# this BUILD.gn file and related subdirs.
visibility = [
"${dawn_root}/samples/dawn/*",
"${dawn_root}/src/*",
"${dawn_root}/src/dawn/*",
"${dawn_root}/src/tests/*", # TODO(crbug.com/dawn/1275) - remove this
]

cflags = []
Expand Down
2 changes: 1 addition & 1 deletion src/dawn/native/d3d12/TextureCopySplitter.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ namespace dawn::native::d3d12 {
// counterparts. These arguments should strictly conform to particular invariants. Otherwise,
// D3D12 driver may report validation errors when we call CopyTextureRegion. Some important
// invariants are listed below. For more details
// of these invariants, see src/tests/unittests/d3d12/CopySplitTests.cpp.
// of these invariants, see src/dawn/tests/unittests/d3d12/CopySplitTests.cpp.
// - Inside each copy region: 1) its buffer offset plus copy size should be less than its
// buffer size, 2) its buffer offset on y-axis should be less than copy format's
// blockInfo.height, 3) its buffer offset on z-axis should be 0.
Expand Down
Loading

0 comments on commit 189b0ce

Please sign in to comment.