]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commit
vulkan: fix coopmat shader generation when cross-compiling (#12272)
authorIcenowy Zheng <redacted>
Fri, 28 Mar 2025 17:51:06 +0000 (01:51 +0800)
committerGitHub <redacted>
Fri, 28 Mar 2025 17:51:06 +0000 (14:51 -0300)
commitb86f6007234da4bff51a3ebef2bdb952b52059c6
treebd0ee509d93d8756c26fdd73ec2ad52d44782215
parentdd373dd3bf81eced3e711fb7cb49123a6105933e
vulkan: fix coopmat shader generation when cross-compiling (#12272)

* vulkan: fix coopmat shader generation when cross-compiling

Previously the status of coopmat{,2} support isn't passed to the
vulkan-shaders-gen project building on the host, which leads to build
failure because of the cross-compiling code expecting coopmat{,2}
shaders that didn't get generated.

Fix this by passing the coopmat{,2} support status to vulkan-shaders
subproject.

Signed-off-by: Icenowy Zheng <redacted>
* Only call coop-mat shaders once

* Fix whitespace

---------

Signed-off-by: Icenowy Zheng <redacted>
Co-authored-by: bandoti <redacted>
ggml/src/ggml-vulkan/CMakeLists.txt
ggml/src/ggml-vulkan/vulkan-shaders/CMakeLists.txt