Module: Mesa
Branch: main
Commit: 1e5bc00715ad8acf3dc323278d0d6a24986bb4ae
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1e5bc00715ad8acf3dc323278d0d6a24986bb4ae

Author: Karol Herbst <g...@karolherbst.de>
Date:   Sat Jun 24 10:56:58 2023 +0200

rusticl/program: add LLVM functions to cache timestamp

Signed-off-by: Karol Herbst <kher...@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24386>

---

 src/gallium/frontends/rusticl/core/program.rs | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/gallium/frontends/rusticl/core/program.rs 
b/src/gallium/frontends/rusticl/core/program.rs
index cec678b3042..eeb9c113538 100644
--- a/src/gallium/frontends/rusticl/core/program.rs
+++ b/src/gallium/frontends/rusticl/core/program.rs
@@ -12,6 +12,7 @@ use mesa_rust::pipe::resource::*;
 use mesa_rust::pipe::screen::ResourceType;
 use mesa_rust::util::disk_cache::*;
 use mesa_rust_gen::*;
+use rusticl_llvm_gen::*;
 use rusticl_opencl_gen::*;
 
 use std::collections::HashMap;
@@ -43,6 +44,12 @@ fn get_disk_cache() -> &'static Option<DiskCache> {
     let func_ptrs = [
         // ourselves
         get_disk_cache as _,
+        // LLVM
+        llvm_LLVMContext_LLVMContext as _,
+        // clang
+        clang_getClangFullVersion as _,
+        // SPIRV-LLVM-Translator
+        llvm_writeSpirv1 as _,
     ];
     unsafe {
         DISK_CACHE_ONCE.call_once(|| {

Reply via email to