summaryrefslogtreecommitdiff
path: root/src/gallium/frontends/clover/api/program.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/frontends/clover/api/program.cpp')
-rw-r--r--src/gallium/frontends/clover/api/program.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gallium/frontends/clover/api/program.cpp b/src/gallium/frontends/clover/api/program.cpp
index d67613f1883..f5971248f43 100644
--- a/src/gallium/frontends/clover/api/program.cpp
+++ b/src/gallium/frontends/clover/api/program.cpp
@@ -22,6 +22,7 @@
#include "api/util.hpp"
#include "core/program.hpp"
+#include "core/platform.hpp"
#include "spirv/invocation.hpp"
#include "util/u_debug.h"
@@ -466,8 +467,11 @@ clUnloadCompiler() {
}
CLOVER_API cl_int
-clUnloadPlatformCompiler(cl_platform_id d_platform) {
+clUnloadPlatformCompiler(cl_platform_id d_platform) try {
+ find_platform(d_platform);
return CL_SUCCESS;
+} catch (error &e) {
+ return e.get();
}
CLOVER_API cl_int