From 1818f906a2d2ec0ed07df410d4f9baec55d159ec Mon Sep 17 00:00:00 2001 From: GuangJie1 Date: Fri, 23 May 2025 16:34:16 +0800 Subject: [PATCH] add mesa --- Others/image-list.yml | 1 + Others/mesa/25.1.1/24.03-lts-sp1/Dockerfile | 50 +++++++++++++++++++++ Others/mesa/meta.yml | 2 + 3 files changed, 53 insertions(+) create mode 100644 Others/mesa/25.1.1/24.03-lts-sp1/Dockerfile create mode 100644 Others/mesa/meta.yml diff --git a/Others/image-list.yml b/Others/image-list.yml index 2bb6820a..1d944c2e 100644 --- a/Others/image-list.yml +++ b/Others/image-list.yml @@ -73,3 +73,4 @@ images: binder: binder cjson: cjson musl: musl + mesa: mesa diff --git a/Others/mesa/25.1.1/24.03-lts-sp1/Dockerfile b/Others/mesa/25.1.1/24.03-lts-sp1/Dockerfile new file mode 100644 index 00000000..e855e26c --- /dev/null +++ b/Others/mesa/25.1.1/24.03-lts-sp1/Dockerfile @@ -0,0 +1,50 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} +ARG VERSION=25.1.1 + +RUN dnf update -y \ + && dnf install -y wget dnf-plugins-core xz python3-pyyaml \ + && dnf builddep -y mesa \ + && dnf clean all \ + && rm -rf /var/cache/dnf + +WORKDIR /opt + +RUN wget https://archive.mesa3d.org/mesa-${VERSION}.tar.xz \ + && tar -xvf mesa-${VERSION}.tar.xz \ + && rm -f mesa-${VERSION}.tar.xz + +WORKDIR /opt/mesa-${VERSION} + +RUN mkdir build \ + && meson setup build \ + -Dcpp_std=gnu++17 \ + -Dandroid-libbacktrace=disabled \ + -Dlibunwind=disabled \ + -Dlmsensors=disabled \ + -Db_ndebug=true \ + -Dplatforms=x11,wayland \ + -Dgallium-drivers="softpipe,llvmpipe,virgl" \ + -Dgallium-vdpau=disabled \ + -Dgallium-va=disabled \ + -Dvulkan-drivers= \ + -Dvulkan-layers=device-select \ + -Dgles1=disabled \ + -Dgles2=enabled \ + -Dopengl=true \ + -Dgbm=enabled \ + -Dvideo-codecs=all_free \ + -Dglx=dri \ + -Degl=enabled \ + -Dglvnd=enabled \ + -Dintel-rt=disabled \ + -Dllvm-orcjit=true \ + -Dmicrosoft-clc=disabled \ + -Dllvm=enabled \ + -Dshared-llvm=enabled \ + -Dvalgrind=disabled \ + -Dbuild-tests=false \ + && meson compile -C build \ + && meson install -C build + +CMD ["bash"] \ No newline at end of file diff --git a/Others/mesa/meta.yml b/Others/mesa/meta.yml new file mode 100644 index 00000000..2fe1b5d8 --- /dev/null +++ b/Others/mesa/meta.yml @@ -0,0 +1,2 @@ +25.1.1-oe2403sp1: + path: 25.1.1/24.03-lts-sp1/Dockerfile -- Gitee