aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorPaul Thomson <paulthomson@users.noreply.github.com>2019-08-03 16:12:59 +0100
committerdan sinclair <dsinclair@chromium.org>2019-08-03 11:12:59 -0400
commit5bb9c644ec17a298d901152e9a8e10f8d08c2ee3 (patch)
tree0b0945abe3a145c6c0bb0768af47e9b634c695f7 /include
parent50d59468756253e3be11b96e6d780cc8e71f0e50 (diff)
downloadamber-5bb9c644ec17a298d901152e9a8e10f8d08c2ee3.tar.gz
Add option to disable SPIR-V validation (#615)
This CL adds a command inline flag --disable-spirv-val which will skip the validation of the generated SPIR-V binary.
Diffstat (limited to 'include')
-rw-r--r--include/amber/amber.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/include/amber/amber.h b/include/amber/amber.h
index 6c8835a..1fffd38 100644
--- a/include/amber/amber.h
+++ b/include/amber/amber.h
@@ -38,6 +38,13 @@ enum EngineType {
kEngineTypeDawn,
};
+enum class ExecutionType {
+ /// Execute as normal.
+ kExecute = 0,
+ /// Only create the pipelines and then exit.
+ kPipelineCreateOnly
+};
+
/// Override point of engines to add their own configuration.
struct EngineConfig {
virtual ~EngineConfig();
@@ -101,8 +108,12 @@ struct Options {
std::string spv_env;
/// Lists the buffers to extract at the end of the execution
std::vector<BufferInfo> extractions;
- /// Terminate after creating the pipelines.
- bool pipeline_create_only;
+ /// The type of execution. For example, execute as normal or just create the
+ /// piplines and exit.
+ ExecutionType execution_type;
+ /// If true, disables SPIR-V validation. If false, SPIR-V shaders will be
+ /// validated using the Validator component (spirv-val) from SPIRV-Tools.
+ bool disable_spirv_validation;
/// Delegate implementation
Delegate* delegate;
};