summaryrefslogtreecommitdiff
path: root/src/gallium/frontends/clover/core/device.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/frontends/clover/core/device.hpp')
-rw-r--r--src/gallium/frontends/clover/core/device.hpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/frontends/clover/core/device.hpp b/src/gallium/frontends/clover/core/device.hpp
index 2cd3a54762e..38cd2646263 100644
--- a/src/gallium/frontends/clover/core/device.hpp
+++ b/src/gallium/frontends/clover/core/device.hpp
@@ -28,8 +28,13 @@
#include "core/object.hpp"
#include "core/format.hpp"
+#include "core/module.hpp"
+#include "util/lazy.hpp"
#include "pipe-loader/pipe_loader.h"
+struct nir_shader;
+struct disk_cache;
+
namespace clover {
class platform;
class root_resource;
@@ -41,6 +46,9 @@ namespace clover {
~device();
device(const device &dev) = delete;
+
+ void load_clc();
+
device &
operator=(const device &dev) = delete;
@@ -101,6 +109,9 @@ namespace clover {
return svm_support() & CL_DEVICE_SVM_FINE_GRAIN_SYSTEM;
}
+ module clc;
+ lazy<std::shared_ptr<struct nir_shader>> clc_nir;
+ struct disk_cache *clc_cache;
private:
pipe_screen *pipe;
pipe_loader_device *ldev;