summaryrefslogtreecommitdiff
path: root/src/gallium/frontends/clover/spirv/invocation.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/frontends/clover/spirv/invocation.hpp')
-rw-r--r--src/gallium/frontends/clover/spirv/invocation.hpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/frontends/clover/spirv/invocation.hpp b/src/gallium/frontends/clover/spirv/invocation.hpp
index 27f8d8c1934..9d954671183 100644
--- a/src/gallium/frontends/clover/spirv/invocation.hpp
+++ b/src/gallium/frontends/clover/spirv/invocation.hpp
@@ -38,11 +38,12 @@ namespace clover {
// warnings and errors are appended to |r_log|.
bool is_valid_spirv(const std::vector<char> &binary,
const std::string &opencl_version,
- std::string &r_log);
+ std::string &r_log, bool validate = true);
// Creates a clover module out of the given SPIR-V binary.
module compile_program(const std::vector<char> &binary,
- const device &dev, std::string &r_log);
+ const device &dev, std::string &r_log,
+ bool validate = true);
// Combines multiple clover modules into a single one, resolving
// link dependencies between them.
@@ -59,6 +60,9 @@ namespace clover {
// Returns a vector (sorted in increasing order) of supported SPIR-V
// versions.
std::vector<uint32_t> supported_versions();
+
+ // Load the SPIR-V for the CLC module.
+ module load_clc(const device &dev);
}
}