tools/perfmon: Hook up external shader corpus

Allow perfmon to benchmark shaders that are defined outside of the repo

Change-Id: Iee53b64cf357facdaa9941602d8d571611680097
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/128040
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2023-04-19 23:26:01 +00:00 committed by Dawn LUCI CQ
parent d795f7958e
commit 5faf59d81d
1 changed files with 12 additions and 10 deletions

View File

@ -134,16 +134,17 @@ func run(cfgPath string) error {
// Config holds the root configuration options for the perfmon tool
type Config struct {
WorkingDir string
RootChange git.Hash
Dawn GitConfig
Results GitConfig
Gerrit GerritConfig
Timeouts TimeoutsConfig
ExternalAccounts []string
BenchmarkRepetitions int
BenchmarkMaxTemp float32 // celsius
CPUTempSensorName string // Name of the sensor to use for CPU temp
WorkingDir string
RootChange git.Hash
Dawn GitConfig
Results GitConfig
Gerrit GerritConfig
Timeouts TimeoutsConfig
ExternalAccounts []string
BenchmarkRepetitions int
BenchmarkMaxTemp float32 // celsius
CPUTempSensorName string // Name of the sensor to use for CPU temp
ExternalBenchmarkCorpus string
}
// GitConfig holds the configuration options for accessing a git repo
@ -725,6 +726,7 @@ func (e env) buildTint() error {
"-DCMAKE_BUILD_TYPE=Release",
"-DCMAKE_BUILD_TESTS=0",
"-DCMAKE_BUILD_SAMPLES=0",
"-DTINT_EXTERNAL_BENCHMARK_CORPUS_DIR="+e.cfg.ExternalBenchmarkCorpus,
"-DTINT_BUILD_DOCS=0",
"-DTINT_BUILD_SAMPLES=0",
"-DTINT_BUILD_TESTS=0",