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:
parent
d795f7958e
commit
5faf59d81d
|
@ -134,16 +134,17 @@ func run(cfgPath string) error {
|
||||||
|
|
||||||
// Config holds the root configuration options for the perfmon tool
|
// Config holds the root configuration options for the perfmon tool
|
||||||
type Config struct {
|
type Config struct {
|
||||||
WorkingDir string
|
WorkingDir string
|
||||||
RootChange git.Hash
|
RootChange git.Hash
|
||||||
Dawn GitConfig
|
Dawn GitConfig
|
||||||
Results GitConfig
|
Results GitConfig
|
||||||
Gerrit GerritConfig
|
Gerrit GerritConfig
|
||||||
Timeouts TimeoutsConfig
|
Timeouts TimeoutsConfig
|
||||||
ExternalAccounts []string
|
ExternalAccounts []string
|
||||||
BenchmarkRepetitions int
|
BenchmarkRepetitions int
|
||||||
BenchmarkMaxTemp float32 // celsius
|
BenchmarkMaxTemp float32 // celsius
|
||||||
CPUTempSensorName string // Name of the sensor to use for CPU temp
|
CPUTempSensorName string // Name of the sensor to use for CPU temp
|
||||||
|
ExternalBenchmarkCorpus string
|
||||||
}
|
}
|
||||||
|
|
||||||
// GitConfig holds the configuration options for accessing a git repo
|
// 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_TYPE=Release",
|
||||||
"-DCMAKE_BUILD_TESTS=0",
|
"-DCMAKE_BUILD_TESTS=0",
|
||||||
"-DCMAKE_BUILD_SAMPLES=0",
|
"-DCMAKE_BUILD_SAMPLES=0",
|
||||||
|
"-DTINT_EXTERNAL_BENCHMARK_CORPUS_DIR="+e.cfg.ExternalBenchmarkCorpus,
|
||||||
"-DTINT_BUILD_DOCS=0",
|
"-DTINT_BUILD_DOCS=0",
|
||||||
"-DTINT_BUILD_SAMPLES=0",
|
"-DTINT_BUILD_SAMPLES=0",
|
||||||
"-DTINT_BUILD_TESTS=0",
|
"-DTINT_BUILD_TESTS=0",
|
||||||
|
|
Loading…
Reference in New Issue