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:
parent
73a5a716b5
commit
056f97a9e5
|
@ -58,6 +58,7 @@ std::variant<ProgramAndFile, Error> LoadProgram(std::string name);
|
||||||
/// files in `<tint>/test/benchmark`.
|
/// files in `<tint>/test/benchmark`.
|
||||||
#define TINT_BENCHMARK_WGSL_PROGRAMS(FUNC) \
|
#define TINT_BENCHMARK_WGSL_PROGRAMS(FUNC) \
|
||||||
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "animometer.wgsl"); \
|
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, "bloom-vertical-blur.wgsl"); \
|
||||||
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "cluster-lights.wgsl"); \
|
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "cluster-lights.wgsl"); \
|
||||||
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "empty.wgsl"); \
|
TINT_BENCHMARK_WGSL_PROGRAM(FUNC, "empty.wgsl"); \
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -39,7 +39,7 @@ import (
|
||||||
type outputFormat string
|
type outputFormat string
|
||||||
|
|
||||||
const (
|
const (
|
||||||
testTimeout = 30 * time.Second
|
testTimeout = 2 * time.Minute
|
||||||
|
|
||||||
glsl = outputFormat("glsl")
|
glsl = outputFormat("glsl")
|
||||||
hlsl = outputFormat("hlsl")
|
hlsl = outputFormat("hlsl")
|
||||||
|
|
Loading…
Reference in New Issue