aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/clover/core
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2016-05-17 16:03:11 +0200
committerFrancisco Jerez <[email protected]>2016-07-11 20:34:34 -0700
commit2a73ae662cb393bef0d2d0ab71bfd1072adbafb6 (patch)
treee67f3a14dbcc7fb3bfd1bbd1ee79e03d0f8c4bc8 /src/gallium/state_trackers/clover/core
parent4ef1c0918da4363aa20b7c1a91d344fae6c01942 (diff)
clover: Define error subclass to signal build option parse failure.
Reviewed-by: Serge Martin <[email protected]> Tested-by: Jan Vesely <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/clover/core')
-rw-r--r--src/gallium/state_trackers/clover/core/error.hpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/clover/core/error.hpp b/src/gallium/state_trackers/clover/core/error.hpp
index 3165402d7e3..0490c19a276 100644
--- a/src/gallium/state_trackers/clover/core/error.hpp
+++ b/src/gallium/state_trackers/clover/core/error.hpp
@@ -65,6 +65,12 @@ namespace clover {
cl_int code;
};
+ class invalid_build_options_error : public error {
+ public:
+ invalid_build_options_error(const std::string &what = "") :
+ error(CL_INVALID_BUILD_OPTIONS, what) {}
+ };
+
class build_error : public error {
public:
build_error(const std::string &what = "") :