f26371ae30
libclc was vendored at recipes/dev/llvm21/source/libclc/ as a
build artifact of the llvm21 fork. This promoted it from an
implicit Mesa dependency (the CLC bitcode Mesa consumes) to a
first-class local project, mirroring how tlc, redbear-*, cub, etc.
are organized per local/AGENTS.md.
Local layout follows the existing in-house pattern:
recipes/dev/libclc -> ../../local/recipes/dev/libclc
local/recipes/dev/libclc/recipe.toml
local/recipes/dev/libclc/source/ (vendored from llvm-project)
The recipe builds libclc as a host-side CMake project using the
cookbook-sysroot clang21 binary (not the cross-compiler) to compile
OpenCL kernels to .bc bitcode. Output targets are amdgcn, amdgcn-amdhsa,
r600, generic, and spirv — the union that Mesa's clc tool consumes
for the iris/radeonsi/llvmpipe drivers. ptx-nvidiacl and clspv are
excluded because they don't map onto any Mesa hardware driver.
The recipe also wires the cookbook's native-cmake generation with
an override that points CMAKE_C_COMPILER etc. at the cookbook
sysroot's clang-21 binary. This is needed because libclc must
run on the build host (output is bitcode, not a Redox binary),
and the cookbook's default cross-toolchain would link the build
against relibc instead of host glibc.
libclc.pc is installed at usr/lib/pkgconfig/, satisfying Mesa's
dependency('libclc') lookup. The .bc files are installed under
usr/share/clc/, which is what the libclc.pc libexecdir pointer
(libexecdir=<prefix>/share/clc) expects.
This is the prerequisite for re-enabling iris, radeonsi, and the
Intel Vulkan driver in the Mesa recipe (Phase 4-6 of
local/docs/3D-DRIVER-PLAN.md). With libclc available in the
cross-sysroot, mesa's meson '-Dwith_clc -> dependency(libclc)'
resolves and the gallium drivers compile.
74 lines
1.8 KiB
Plaintext
74 lines
1.8 KiB
Plaintext
math/fma.cl
|
|
shared/vstore_half.cl
|
|
subnormal_config.cl
|
|
../generic/geometric/distance.cl
|
|
../generic/geometric/length.cl
|
|
../generic/math/acos.cl
|
|
../generic/math/acosh.cl
|
|
../generic/math/asinh.cl
|
|
../generic/math/acospi.cl
|
|
../generic/math/asin.cl
|
|
../generic/math/atan.cl
|
|
../generic/math/asinh.cl
|
|
../generic/math/asinpi.cl
|
|
../generic/math/atan2.cl
|
|
../generic/math/atan2pi.cl
|
|
../generic/math/atanh.cl
|
|
../generic/math/atanpi.cl
|
|
../generic/math/cbrt.cl
|
|
../generic/math/cos.cl
|
|
../generic/math/cosh.cl
|
|
../generic/math/cospi.cl
|
|
../generic/math/erf.cl
|
|
../generic/math/erfc.cl
|
|
../generic/math/exp.cl
|
|
../generic/math/exp10.cl
|
|
../generic/math/exp2.cl
|
|
../generic/math/expm1.cl
|
|
../generic/math/fdim.cl
|
|
../generic/math/fmod.cl
|
|
../generic/math/fract.cl
|
|
../generic/math/frexp.cl
|
|
../generic/math/half_cos.cl
|
|
../generic/math/half_divide.cl
|
|
../generic/math/half_exp.cl
|
|
../generic/math/half_exp10.cl
|
|
../generic/math/half_exp2.cl
|
|
../generic/math/half_log.cl
|
|
../generic/math/half_log10.cl
|
|
../generic/math/half_log2.cl
|
|
../generic/math/half_powr.cl
|
|
../generic/math/half_recip.cl
|
|
../generic/math/half_sin.cl
|
|
../generic/math/half_sqrt.cl
|
|
../generic/math/half_tan.cl
|
|
../generic/math/hypot.cl
|
|
../generic/math/ilogb.cl
|
|
../generic/math/ldexp.cl
|
|
../generic/math/lgamma.cl
|
|
../generic/math/lgamma_r.cl
|
|
../generic/math/log.cl
|
|
../generic/math/log10.cl
|
|
../generic/math/log1p.cl
|
|
../generic/math/log2.cl
|
|
../generic/math/logb.cl
|
|
../generic/math/maxmag.cl
|
|
../generic/math/minmag.cl
|
|
../generic/math/modf.cl
|
|
../generic/math/nan.cl
|
|
../generic/math/nextafter.cl
|
|
../generic/math/pow.cl
|
|
../generic/math/pown.cl
|
|
../generic/math/powr.cl
|
|
../generic/math/remainder.cl
|
|
../generic/math/remquo.cl
|
|
../generic/math/rootn.cl
|
|
../generic/math/sin.cl
|
|
../generic/math/sincos.cl
|
|
../generic/math/sinh.cl
|
|
../generic/math/sinpi.cl
|
|
../generic/math/tan.cl
|
|
../generic/math/tanh.cl
|
|
../generic/math/tanpi.cl
|
|
../generic/math/tgamma.cl
|