From 2a73ae662cb393bef0d2d0ab71bfd1072adbafb6 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Tue, 17 May 2016 16:03:11 +0200 Subject: clover: Define error subclass to signal build option parse failure. Reviewed-by: Serge Martin Tested-by: Jan Vesely --- src/gallium/state_trackers/clover/core/error.hpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/gallium/state_trackers/clover/core') 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 = "") : -- cgit v1.2.3