upgrade to 21.3.1

(cherry picked from commit 4865eb68f7dd0525a8c7db7b0bbf668aee2e91a3)
This commit is contained in:
shirely16 2021-12-17 10:08:50 +08:00 committed by openeuler-sync-bot
parent 8c36f8cd19
commit e918633f08
3 changed files with 164 additions and 204 deletions

View File

@ -0,0 +1,33 @@
From eba08aad979fbdeb2face8769dcdda80105e6b70 Mon Sep 17 00:00:00 2001
From: satmandu <satmandu@satmandu.com>
https://gitlab.freedesktop.org/mesa/mesa/-/issues/5067
Subject: [PATCH] backport-fix-build-err-on-arm
---
src/gallium/drivers/freedreno/freedreno_util.h | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/src/gallium/drivers/freedreno/freedreno_util.h b/src/gallium/drivers/freedreno/freedreno_util.h
index 5e00657..29d5df3 100644
--- a/src/gallium/drivers/freedreno/freedreno_util.h
+++ b/src/gallium/drivers/freedreno/freedreno_util.h
@@ -44,6 +44,15 @@
#include "adreno_pm4.xml.h"
#include "disasm.h"
+#include <unistd.h>
+#include <sys/syscall.h>
+
+#ifndef SYS_gettid
+#error "SYS_gettid unavailable on this system"
+#endif
+
+#define gettid() ((pid_t)syscall(SYS_gettid))
+
#ifdef __cplusplus
extern "C" {
#endif
--
2.27.0

331
mesa.spec
View File

@ -1,138 +1,106 @@
%undefine _annotated_build %global llvm_toolset %{nil}
%global llvm_pkg_prefix %{nil}
%ifnarch s390x %ifarch s390x
%global with_hardware 1 %define with_hardware 0
%if 0%{?openeuler}
%bcond_without vdpau
%bcond_without nine
%bcond_without omx
%else %else
%bcond_with vdpau %define with_hardware 1
%bcond_with nine %define with_vdpau 1
%bcond_with omx
%endif
%bcond_without vaapi
%bcond_with opencl
%global base_drivers nouveau,r100,r200
%endif %endif
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
%global platform_drivers ,i915,i965 %define platform_drivers i965
%global with_iris 1 %define with_vmware 1
%global with_vmware 1 %define with_xa 1
%if 0%{?openeuler} %define with_iris 1
%global with_xa 1
%endif %endif
%global vulkan_drivers intel,amd
%ifarch %{ix86} x86_64
%define with_vulkan_hw 1
%else %else
%ifnarch s390x %define with_vulkan_hw 0
%global vulkan_drivers amd
%endif
%endif %endif
%ifarch %{arm} aarch64 %ifarch %{arm} aarch64
%global with_etnaviv 1 %define with_xa 1
%global with_freedreno 1
%global with_kmsro 1
%global with_lima 1
%global with_panfrost 1
%global with_tegra 1
%global with_vc4 1
%global with_v3d 1
%if 0%{?openeuler}
%global with_xa 1
%endif
%endif %endif
%ifnarch %{arm} s390x %global dri_drivers %{?platform_drivers}
%global with_radeonsi 1
%endif
%ifnarch %{x86} %if 0%{?with_vulkan_hw}
%global with_asm 1 %define vulkan_drivers swrast,intel,amd
%endif
%ifarch %{valgrind_arches}
%bcond_without valgrind
%else %else
%bcond_with valgrind %define vulkan_drivers swrast
%endif %endif
%global dri_drivers %{?base_drivers}%{?platform_drivers} %global sanitize 0
Name: mesa Name: mesa
Summary: Mesa graphics libraries Summary: Mesa graphics libraries
Version: 20.1.4 Version: 21.3.1
Release: 2 Release: 1
License: MIT License: MIT
URL: http://www.mesa3d.org URL: http://www.mesa3d.org
Source0: https://mesa.freedesktop.org/archive/%{name}-%{version}.tar.xz Source0: https://mesa.freedesktop.org/archive/%{name}-%{version}.tar.xz
Patch3: 0001-evergreen-big-endian.patch Patch1: backport-fix-build-err-on-arm.patch
Patch2: 0001-evergreen-big-endian.patch
BuildRequires: meson >= 0.45
BuildRequires: gcc BuildRequires: gcc
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: gettext
%if 0%{?with_hardware} BuildRequires: meson >= 0.45
%if %{with_hardware}
BuildRequires: kernel-headers BuildRequires: kernel-headers
%endif %endif
BuildRequires: pkgconfig(libdrm) >= 2.4.97 BuildRequires: libdrm-devel >= 2.4.103
BuildRequires: pkgconfig(expat) BuildRequires: libXxf86vm-devel
BuildRequires: pkgconfig(zlib) >= 1.2.3 BuildRequires: expat-devel
BuildRequires: pkgconfig(libselinux) BuildRequires: xorg-x11-proto-devel
BuildRequires: pkgconfig(wayland-scanner) BuildRequires: libselinux-devel
BuildRequires: pkgconfig(wayland-protocols) >= 1.8 BuildRequires: libXext-devel
BuildRequires: pkgconfig(wayland-client) >= 1.11 BuildRequires: libXfixes-devel
BuildRequires: pkgconfig(wayland-server) >= 1.11 BuildRequires: libXdamage-devel
BuildRequires: pkgconfig(wayland-egl-backend) >= 3 BuildRequires: libXi-devel
BuildRequires: pkgconfig(x11) BuildRequires: libXrandr-devel
BuildRequires: pkgconfig(xext) BuildRequires: libXmu-devel
BuildRequires: pkgconfig(xdamage) >= 1.1 BuildRequires: libxshmfence-devel
BuildRequires: pkgconfig(xfixes) BuildRequires: elfutils
BuildRequires: pkgconfig(xcb-glx) >= 1.8.1 BuildRequires: python3-devel
BuildRequires: pkgconfig(xxf86vm) BuildRequires: gettext
BuildRequires: pkgconfig(xcb) BuildRequires: %{llvm_pkg_prefix}llvm-devel >= 3.4-7
BuildRequires: pkgconfig(x11-xcb) %if 0%{?with_opencl}
BuildRequires: pkgconfig(xcb-dri2) >= 1.8 BuildRequires: %{llvm_pkg_prefix}clang-devel >= 3.0
BuildRequires: pkgconfig(xcb-dri3) %endif
BuildRequires: pkgconfig(xcb-present) BuildRequires: elfutils-libelf-devel
BuildRequires: pkgconfig(xcb-sync) BuildRequires: libudev-devel
BuildRequires: pkgconfig(xshmfence) >= 1.1 BuildRequires: bison flex
BuildRequires: pkgconfig(dri2proto) >= 2.8 BuildRequires: pkgconfig(wayland-client)
BuildRequires: pkgconfig(glproto) >= 1.4.14 BuildRequires: pkgconfig(wayland-server)
BuildRequires: pkgconfig(xcb-xfixes) BuildRequires: pkgconfig(wayland-protocols)
BuildRequires: pkgconfig(xcb-randr)
BuildRequires: pkgconfig(xrandr) >= 1.3
BuildRequires: bison
BuildRequires: flex
%if 0%{?with_vdpau} %if 0%{?with_vdpau}
BuildRequires: pkgconfig(vdpau) >= 1.1 BuildRequires: libvdpau-devel
%endif %endif
%if 0%{?with_vaapi} %if 0%{?with_vaapi}
BuildRequires: pkgconfig(libva) >= 0.38.0 BuildRequires: libva-devel
%endif %endif
BuildRequires: pkgconfig(zlib)
%if 0%{?with_omx} %if 0%{?with_omx}
BuildRequires: pkgconfig(libomxil-bellagio) BuildRequires: libomxil-bellagio-devel
%endif %endif
BuildRequires: pkgconfig(libelf)
BuildRequires: pkgconfig(libglvnd) >= 0.2.0
BuildRequires: llvm-devel >= 7.0.0
%if 0%{?with_opencl} %if 0%{?with_opencl}
BuildRequires: clang-devel BuildRequires: libclc-devel opencl-filesystem
BuildRequires: pkgconfig(libclc)
%endif %endif
%if %{with valgrind} BuildRequires: python3-mako
BuildRequires: pkgconfig(valgrind) %ifarch %{valgrind_arches}
BuildRequires: pkgconfig(valgrind)
%endif %endif
BuildRequires: python3-devel BuildRequires: pkgconfig(libglvnd) >= 1.2.0
BuildRequires: python3-mako
%if 0%{?with_hardware} %if 0%{?rhel} == 7
BuildRequires: vulkan-headers BuildRequires: llvm-toolset-7-runtime
%enable_llvmtoolset7
%endif %endif
%description %description
@ -149,7 +117,7 @@ Obsoletes: mesa-dri-filesystem < %{?epoch:%{epoch}:}%{version}-%{release}
%package libGL %package libGL
Summary: Mesa libGL runtime libraries Summary: Mesa libGL runtime libraries
Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libglvnd-glx%{?_isa} >= 1:1.0.1-0.9 Requires: libglvnd-glx%{?_isa} >= 1:1.2.0-1
%description libGL %description libGL
%{summary}. %{summary}.
@ -157,7 +125,7 @@ Requires: libglvnd-glx%{?_isa} >= 1:1.0.1-0.9
%package libGL-devel %package libGL-devel
Summary: Mesa libGL development package Summary: Mesa libGL development package
Requires: %{name}-libGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-libGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libglvnd-devel%{?_isa} Requires: libglvnd-devel%{?_isa} >= 1:1.2.0-1
Provides: libGL-devel Provides: libGL-devel
Provides: libGL-devel%{?_isa} Provides: libGL-devel%{?_isa}
@ -166,7 +134,7 @@ Provides: libGL-devel%{?_isa}
%package libEGL %package libEGL
Summary: Mesa libEGL runtime libraries Summary: Mesa libEGL runtime libraries
Requires: libglvnd-egl%{?_isa} Requires: libglvnd-egl%{?_isa} >= 1:1.2.0-1
%description libEGL %description libEGL
%{summary}. %{summary}.
@ -174,8 +142,7 @@ Requires: libglvnd-egl%{?_isa}
%package libEGL-devel %package libEGL-devel
Summary: Mesa libEGL development package Summary: Mesa libEGL development package
Requires: %{name}-libEGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-libEGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libglvnd-devel%{?_isa} Requires: libglvnd-devel%{?_isa} >= 1:1.2.0-1
Requires: %{name}-khr-devel%{?_isa}
Provides: libEGL-devel Provides: libEGL-devel
Provides: libEGL-devel%{?_isa} Provides: libEGL-devel%{?_isa}
@ -185,6 +152,7 @@ Provides: libEGL-devel%{?_isa}
%package dri-drivers %package dri-drivers
Summary: Mesa-based DRI drivers Summary: Mesa-based DRI drivers
Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires: libdrm >= 2.4.103
%description dri-drivers %description dri-drivers
%{summary}. %{summary}.
@ -308,6 +276,7 @@ Requires: vulkan%{_isa}
%description vulkan-drivers %description vulkan-drivers
The drivers with support for the Vulkan API. The drivers with support for the Vulkan API.
%if 0%{?with_vulkan_hw}
%package vulkan-devel %package vulkan-devel
Summary: Mesa Vulkan development files Summary: Mesa Vulkan development files
Requires: %{name}-vulkan-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} Requires: %{name}-vulkan-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
@ -315,6 +284,7 @@ Requires: vulkan-devel
%description vulkan-devel %description vulkan-devel
Headers for development with the Vulkan API. Headers for development with the Vulkan API.
%endif
%prep %prep
%autosetup -n %{name}-%{version} -p1 %autosetup -n %{name}-%{version} -p1
@ -322,24 +292,16 @@ Headers for development with the Vulkan API.
# Make sure the build uses gnu++14 as llvm 10 headers require that # Make sure the build uses gnu++14 as llvm 10 headers require that
sed -i -e 's/cpp_std=gnu++11/cpp_std=gnu++14/g' meson.build sed -i -e 's/cpp_std=gnu++11/cpp_std=gnu++14/g' meson.build
# cElementTree no longer exists in Python 3.9
sed -i -e 's/import xml.etree.cElementTree/import xml.etree.ElementTree/g' \
src/amd/vulkan/radv_extensions.py \
src/freedreno/vulkan/tu_extensions.py \
src/intel/vulkan/anv_extensions_gen.py
%build %build
export ASFLAGS="--generate-missing-build-notes=yes"
# Build with -fcommon until the omx build with gcc10 is fixed upstream
# https://gitlab.freedesktop.org/mesa/mesa/issues/2385
%global optflags %{optflags} -fcommon
%meson -Dcpp_std=gnu++14 \ %meson -Dcpp_std=gnu++14 \
-Dplatforms=x11,wayland,drm,surfaceless \ -Db_ndebug=true \
-Ddri3=true \ -Dplatforms=x11,wayland \
-Ddri3=enabled \
-Ddri-drivers=%{?dri_drivers} \ -Ddri-drivers=%{?dri_drivers} \
-Dosmesa=true \
%if 0%{?with_hardware} %if 0%{?with_hardware}
-Dgallium-drivers=swrast,virgl,r300,nouveau%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi,r600}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_v3d:,v3d}%{?with_kmsro:,kmsro}%{?with_lima:,lima}%{?with_panfrost:,panfrost} \ -Dgallium-drivers=swrast%{?with_iris:,iris},virgl,nouveau%{?with_vmware:,svga},radeonsi,r600%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_kmsro:,kmsro} \
%else %else
-Dgallium-drivers=swrast,virgl \ -Dgallium-drivers=swrast,virgl \
%endif %endif
@ -349,30 +311,31 @@ sed -i -e 's/import xml.etree.cElementTree/import xml.etree.ElementTree/g' \
-Dgallium-va=%{?with_vaapi:true}%{!?with_vaapi:false} \ -Dgallium-va=%{?with_vaapi:true}%{!?with_vaapi:false} \
-Dgallium-xa=%{?with_xa:true}%{!?with_xa:false} \ -Dgallium-xa=%{?with_xa:true}%{!?with_xa:false} \
-Dgallium-nine=%{?with_nine:true}%{!?with_nine:false} \ -Dgallium-nine=%{?with_nine:true}%{!?with_nine:false} \
-Dgallium-opencl=disabled \ -Dgallium-opencl=%{?with_opencl:icd}%{!?with_opencl:disabled} \
-Dvulkan-drivers=%{?vulkan_drivers} \ -Dvulkan-drivers=%{?vulkan_drivers} \
-Dshared-glapi=true \ -Dvulkan-layers=device-select \
-Dgles1=false \ -Dshared-glapi=enabled \
-Dgles2=true \ -Dgles1=disabled \
-Dgles2=enabled \
-Dopengl=true \ -Dopengl=true \
-Dgbm=true \ -Dgbm=enabled \
-Dglx=dri \ -Dglx=dri \
-Degl=true \ -Degl=true \
-Dglvnd=true \ -Dglvnd=true \
-Dasm=%{?with_asm:true}%{!?with_asm:false} \ -Dmicrosoft-clc=disabled \
-Dllvm=true \ -Dllvm=true \
-Dshared-llvm=true \ -Dshared-llvm=true \
-Dvalgrind=%{?with_valgrind:true}%{!?with_valgrind:false} \ -Dvalgrind=%{?with_valgrind:true}%{!?with_valgrind:false} \
-Dbuild-tests=false \ -Dbuild-tests=false \
-Dselinux=true \ -Dselinux=true \
-Dosmesa=gallium \
-Dvulkan-device-select-layer=true \
%{nil} %{nil}
%meson_build %meson_build
%check
%meson_test
%install %install
%meson_install %meson_install
# libvdpau opens the versioned name, don't bother including the unversioned # libvdpau opens the versioned name, don't bother including the unversioned
rm -vf %{buildroot}%{_libdir}/vdpau/*.so rm -vf %{buildroot}%{_libdir}/vdpau/*.so
# likewise glvnd # likewise glvnd
@ -385,16 +348,25 @@ rm -vf %{buildroot}%{_libdir}/libGLES*
# determine the vendor # determine the vendor
ln -s %{_libdir}/libGLX_mesa.so.0 %{buildroot}%{_libdir}/libGLX_system.so.0 ln -s %{_libdir}/libGLX_mesa.so.0 %{buildroot}%{_libdir}/libGLX_system.so.0
# strip out useless headers
rm -f %{buildroot}%{_includedir}/GL/w*.h
# these are shipped already in vulkan-devel
rm -f %{buildroot}/%{_includedir}/vulkan/vk_platform.h
rm -f %{buildroot}/%{_includedir}/vulkan/vulkan.h
# remove .la files
find %{buildroot} -name '*.la' -delete
# this keeps breaking, check it early. note that the exit from eu-ftr is odd. # this keeps breaking, check it early. note that the exit from eu-ftr is odd.
pushd %{buildroot}%{_libdir} pushd %{buildroot}%{_libdir}
for i in libOSMesa*.so libGL.so ; do for i in libOSMesa*.so libGL.so ; do
eu-findtextrel $i && exit 1 eu-findtextrel $i && exit 1
done done
popd
%files filesystem %files filesystem
%dir %{_libdir}/dri %dir %{_libdir}/dri
%if 0%{?with_hardware} %if %{with_hardware}
%if 0%{?with_vdpau} %if 0%{?with_vdpau}
%dir %{_libdir}/vdpau %dir %{_libdir}/vdpau
%endif %endif
@ -417,12 +389,14 @@ popd
%{_includedir}/EGL/eglmesaext.h %{_includedir}/EGL/eglmesaext.h
%{_includedir}/EGL/eglextchromium.h %{_includedir}/EGL/eglextchromium.h
%ldconfig_scriptlets libglapi %post libglapi -p /sbin/ldconfig
%postun libglapi -p /sbin/ldconfig
%files libglapi %files libglapi
%{_libdir}/libglapi.so.0 %{_libdir}/libglapi.so.0
%{_libdir}/libglapi.so.0.* %{_libdir}/libglapi.so.0.*
%ldconfig_scriptlets libOSMesa %post libOSMesa -p /sbin/ldconfig
%postun libOSMesa -p /sbin/ldconfig
%files libOSMesa %files libOSMesa
%{_libdir}/libOSMesa.so.8* %{_libdir}/libOSMesa.so.8*
%files libOSMesa-devel %files libOSMesa-devel
@ -431,7 +405,8 @@ popd
%{_libdir}/libOSMesa.so %{_libdir}/libOSMesa.so
%{_libdir}/pkgconfig/osmesa.pc %{_libdir}/pkgconfig/osmesa.pc
%ldconfig_scriptlets libgbm %post libgbm -p /sbin/ldconfig
%postun libgbm -p /sbin/ldconfig
%files libgbm %files libgbm
%{_libdir}/libgbm.so.1 %{_libdir}/libgbm.so.1
%{_libdir}/libgbm.so.1.* %{_libdir}/libgbm.so.1.*
@ -441,15 +416,16 @@ popd
%{_libdir}/pkgconfig/gbm.pc %{_libdir}/pkgconfig/gbm.pc
%if 0%{?with_xa} %if 0%{?with_xa}
%ldconfig_scriptlets libxatracker %post libxatracker -p /sbin/ldconfig
%postun libxatracker -p /sbin/ldconfig
%files libxatracker %files libxatracker
%if 0%{?with_hardware} %if %{with_hardware}
%{_libdir}/libxatracker.so.2 %{_libdir}/libxatracker.so.2
%{_libdir}/libxatracker.so.2.* %{_libdir}/libxatracker.so.2.*
%endif %endif
%files libxatracker-devel %files libxatracker-devel
%if 0%{?with_hardware} %if %{with_hardware}
%{_libdir}/libxatracker.so %{_libdir}/libxatracker.so
%{_includedir}/xa_tracker.h %{_includedir}/xa_tracker.h
%{_includedir}/xa_composite.h %{_includedir}/xa_composite.h
@ -459,7 +435,8 @@ popd
%endif %endif
%if 0%{?with_opencl} %if 0%{?with_opencl}
%ldconfig_scriptlets libOpenCL %post libOpenCL -p /sbin/ldconfig
%postun libOpenCL -p /sbin/ldconfig
%files libOpenCL %files libOpenCL
%{_libdir}/libMesaOpenCL.so.* %{_libdir}/libMesaOpenCL.so.*
%{_sysconfdir}/OpenCL/vendors/mesa.icd %{_sysconfdir}/OpenCL/vendors/mesa.icd
@ -481,32 +458,16 @@ popd
%files dri-drivers %files dri-drivers
%dir %{_datadir}/drirc.d %dir %{_datadir}/drirc.d
%{_datadir}/drirc.d/00-mesa-defaults.conf %{_datadir}/drirc.d/00-mesa-defaults.conf
%if 0%{?with_hardware} %if %{with_hardware}
%{_libdir}/dri/radeon_dri.so
%{_libdir}/dri/r200_dri.so
%{_libdir}/dri/nouveau_vieux_dri.so
%{_libdir}/dri/r300_dri.so
%if 0%{?with_radeonsi}
%{_libdir}/dri/r600_dri.so %{_libdir}/dri/r600_dri.so
%{_libdir}/dri/radeonsi_dri.so %{_libdir}/dri/radeonsi_dri.so
%endif
%ifarch %{ix86} x86_64 %ifarch %{ix86} x86_64
%{_libdir}/dri/i915_dri.so
%{_libdir}/dri/i965_dri.so %{_libdir}/dri/i965_dri.so
%{_libdir}/dri/iris_dri.so %{_libdir}/dri/iris_dri.so
%endif %endif
%ifarch %{arm} aarch64
%{_libdir}/dri/ingenic-drm_dri.so
%{_libdir}/dri/mcde_dri.so
%{_libdir}/dri/mxsfb-drm_dri.so
%{_libdir}/dri/stm_dri.so
%endif
%if 0%{?with_vc4} %if 0%{?with_vc4}
%{_libdir}/dri/vc4_dri.so %{_libdir}/dri/vc4_dri.so
%endif %endif
%if 0%{?with_v3d}
%{_libdir}/dri/v3d_dri.so
%endif
%if 0%{?with_freedreno} %if 0%{?with_freedreno}
%{_libdir}/dri/kgsl_dri.so %{_libdir}/dri/kgsl_dri.so
%{_libdir}/dri/msm_dri.so %{_libdir}/dri/msm_dri.so
@ -515,53 +476,16 @@ popd
%{_libdir}/dri/etnaviv_dri.so %{_libdir}/dri/etnaviv_dri.so
%{_libdir}/dri/imx-drm_dri.so %{_libdir}/dri/imx-drm_dri.so
%endif %endif
%if 0%{?with_tegra}
%{_libdir}/dri/tegra_dri.so
%endif
%if 0%{?with_lima}
%{_libdir}/dri/lima_dri.so
%endif
%if 0%{?with_panfrost}
%{_libdir}/dri/panfrost_dri.so
%endif
%{_libdir}/dri/nouveau_dri.so %{_libdir}/dri/nouveau_dri.so
%if 0%{?with_vmware} %if 0%{?with_vmware}
%{_libdir}/dri/vmwgfx_dri.so %{_libdir}/dri/vmwgfx_dri.so
%endif %endif
%if 0%{?with_vaapi}
%{_libdir}/dri/nouveau_drv_video.so
%endif
%if 0%{?with_radeonsi}
%if 0%{?with_vaapi}
%{_libdir}/dri/r600_drv_video.so
%{_libdir}/dri/radeonsi_drv_video.so
%endif
%endif
%endif
%if 0%{?with_opencl}
%dir %{_libdir}/gallium-pipe
%{_libdir}/gallium-pipe/*.so
%endif
%if 0%{?with_kmsro}
%{_libdir}/dri/armada-drm_dri.so
%{_libdir}/dri/exynos_dri.so
%{_libdir}/dri/hx8357d_dri.so
%{_libdir}/dri/ili9225_dri.so
%{_libdir}/dri/ili9341_dri.so
%{_libdir}/dri/meson_dri.so
%{_libdir}/dri/mi0283qt_dri.so
%{_libdir}/dri/pl111_dri.so
%{_libdir}/dri/repaper_dri.so
%{_libdir}/dri/rockchip_dri.so
%{_libdir}/dri/st7586_dri.so
%{_libdir}/dri/st7735r_dri.so
%{_libdir}/dri/sun4i-drm_dri.so
%endif %endif
%{_libdir}/dri/kms_swrast_dri.so %{_libdir}/dri/kms_swrast_dri.so
%{_libdir}/dri/swrast_dri.so %{_libdir}/dri/swrast_dri.so
%{_libdir}/dri/virtio_gpu_dri.so %{_libdir}/dri/virtio_gpu_dri.so
%if 0%{?with_hardware} %if %{with_hardware}
%if 0%{?with_omx} %if 0%{?with_omx}
%files omx-drivers %files omx-drivers
%{_libdir}/bellagio/libomx_mesa.so %{_libdir}/bellagio/libomx_mesa.so
@ -569,34 +493,37 @@ popd
%if 0%{?with_vdpau} %if 0%{?with_vdpau}
%files vdpau-drivers %files vdpau-drivers
%{_libdir}/vdpau/libvdpau_nouveau.so.1* %{_libdir}/vdpau/libvdpau_nouveau.so.1*
%{_libdir}/vdpau/libvdpau_r300.so.1*
%if 0%{?with_radeonsi}
%{_libdir}/vdpau/libvdpau_r600.so.1* %{_libdir}/vdpau/libvdpau_r600.so.1*
%{_libdir}/vdpau/libvdpau_radeonsi.so.1* %{_libdir}/vdpau/libvdpau_radeonsi.so.1*
%endif %endif
%endif %endif
%endif
%files vulkan-drivers %files vulkan-drivers
%if 0%{?with_hardware} %if 0%{?with_vulkan_hw}
%ifarch %{ix86} x86_64
%{_libdir}/libvulkan_intel.so %{_libdir}/libvulkan_intel.so
%{_datadir}/vulkan/icd.d/intel_icd.*.json
%endif
%{_libdir}/libvulkan_radeon.so %{_libdir}/libvulkan_radeon.so
%{_datadir}/vulkan/icd.d/radeon_icd.*.json %ifarch x86_64
%{_datadir}/vulkan/icd.d/intel_icd.x86_64.json
%{_datadir}/vulkan/icd.d/radeon_icd.x86_64.json
%else
%{_datadir}/vulkan/icd.d/intel_icd.i686.json
%{_datadir}/vulkan/icd.d/radeon_icd.i686.json
%endif
%endif
%{_libdir}/libvulkan_lvp.so
%{_datadir}/vulkan/icd.d/lvp_icd.*.json
%{_libdir}/libVkLayer_MESA_device_select.so %{_libdir}/libVkLayer_MESA_device_select.so
%{_datadir}/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json %{_datadir}/vulkan/implicit_layer.d/VkLayer_MESA_device_select.json
%endif
%if 0%{?with_vulkan_hw}
%files vulkan-devel %files vulkan-devel
%if 0%{?with_hardware}
%ifarch %{ix86} x86_64
%{_includedir}/vulkan/vulkan_intel.h
%endif
%endif %endif
%changelog %changelog
* Thu Sep 16 2021 hanhui <hanhui15@huawei.com> - 21.3.1-1
- upgrade to mesa-21.3.1
- enable check
* Thu Mar 25 2021 yanan <yanan@huawei.com> - 20.1.4-2 * Thu Mar 25 2021 yanan <yanan@huawei.com> - 20.1.4-2
- optimize the mesa spec - optimize the mesa spec