draw/orcjit: supply stub function for tcs coro
This fixes a crash with shader cache enabled:
JIT session error: Unexpected definitions in module : [ draw_llvm_tcs_coro_variant ]
Failed to materialize symbols: { (draw_llvm_tcs_variant0_7, { draw_llvm_tcs_variant }) }
Fixes: bb0efdd4d896 ("llvmpipe: add shader cache support for ORCJIT implementation")
Reviewed-by: Icenowy Zheng <uwu@icenowy.me>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30335>
(cherry picked from commit fcf9e33ec0e51ee8f22463b388a3bcefd3b5f572)
diff --git a/.pick_status.json b/.pick_status.json
index d3b46d4..e5daf35 100644
--- a/.pick_status.json
+++ b/.pick_status.json
@@ -34,7 +34,7 @@
"description": "draw/orcjit: supply stub function for tcs coro",
"nominated": true,
"nomination_type": 1,
- "resolution": 0,
+ "resolution": 1,
"main_sha": null,
"because_sha": "bb0efdd4d8968a71957b563e7dbf98cefa80a986",
"notes": null
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index 46eb9df..886d36f 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -2968,6 +2968,7 @@
if (gallivm->cache && gallivm->cache->data_size) {
gallivm_stub_func(gallivm, variant_func);
+ gallivm_stub_func(gallivm, variant_coro);
return;
}