tint: Add a benchmark for atan2 const eval

And increase the test runner timeout from 30s to 2min.
FXC really doesn't like this shader, however I expect this to be
made much faster once constant evaluation for atan2 is implemented.

Change-Id: Id8a8ba97b5a99a2f94633a0732300a35ba6dc1c3
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/96401
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
This commit is contained in:
Ben Clayton 2022-07-19 14:50:33 +00:00 committed by Dawn LUCI CQ
parent 73a5a716b5
commit 056f97a9e5
3 changed files with 1011 additions and 1 deletions

View File

@ -58,6 +58,7 @@ std::variant<ProgramAndFile, Error> LoadProgram(std::string name);
/// files in `<tint>/test/benchmark`.
#define TINT_BENCHMARK_WGSL_PROGRAMS(FUNC) \
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "animometer.wgsl"); \
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "atan2-const-eval.wgsl"); \
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "bloom-vertical-blur.wgsl"); \
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "cluster-lights.wgsl"); \
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "empty.wgsl"); \

File diff suppressed because it is too large Load Diff

View File

@ -39,7 +39,7 @@ import (
type outputFormat string
const (
testTimeout = 30 * time.Second
testTimeout = 2 * time.Minute
glsl = outputFormat("glsl")
hlsl = outputFormat("hlsl")