commit 38a661d1a9b8d697ea7766a1c22c69e8036d4852 Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:04:30 2019 -0400 Package init diff --git a/0001-gallium-Disable-rgb10-configs-by-default.patch b/0001-gallium-Disable-rgb10-configs-by-default.patch new file mode 100644 index 0000000..09593a0 --- /dev/null +++ b/0001-gallium-Disable-rgb10-configs-by-default.patch @@ -0,0 +1,27 @@ +From b33c8b56abcc4837f96f7f106b108681858482e0 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Jonas=20=C3=85dahl?= +Date: Tue, 24 Apr 2018 09:46:41 +0200 +Subject: [PATCH] gallium: Disable rgb10 configs by default + +Applications tend to not handle rgb10 configs very well, so lets +disable it for now. + +https://bugzilla.redhat.com/show_bug.cgi?id=1560481 +--- + src/gallium/auxiliary/pipe-loader/driinfo_gallium.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h b/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h +index 21dc599dc2..23f9194149 100644 +--- a/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h ++++ b/src/gallium/auxiliary/pipe-loader/driinfo_gallium.h +@@ -33,5 +33,5 @@ DRI_CONF_SECTION_END + DRI_CONF_SECTION_MISCELLANEOUS + DRI_CONF_ALWAYS_HAVE_DEPTH_BUFFER("false") + DRI_CONF_GLSL_ZERO_INIT("false") +- DRI_CONF_ALLOW_RGB10_CONFIGS("true") ++ DRI_CONF_ALLOW_RGB10_CONFIGS("false") + DRI_CONF_SECTION_END +-- +2.17.0 + diff --git a/0001-llvm-SONAME-without-version.patch b/0001-llvm-SONAME-without-version.patch new file mode 100644 index 0000000..cb91094 --- /dev/null +++ b/0001-llvm-SONAME-without-version.patch @@ -0,0 +1,26 @@ +From c2b4d93a5e4796ca53361c61d7e31edc24241932 Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko +Date: Sun, 20 Mar 2016 13:26:25 +0100 +Subject: [PATCH 1/4] llvm SONAME without version + +Signed-off-by: Igor Gnatenko +--- + configure.ac | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/configure.ac b/configure.ac +index 5f75c60..d77f907 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -2645,7 +2645,7 @@ + dnl ourselves. + dnl (See https://llvm.org/bugs/show_bug.cgi?id=6823) + dnl We can't use $LLVM_VERSION because it has 'svn' stripped out, +- LLVM_SO_NAME=LLVM-`$LLVM_CONFIG --version` ++ LLVM_SO_NAME=LLVM + AS_IF([test -f "$LLVM_LIBDIR/lib$LLVM_SO_NAME.$IMP_LIB_EXT"], [llvm_have_one_so=yes]) + + if test "x$llvm_have_one_so" = xyes; then +-- +2.7.4 + diff --git a/0003-evergreen-big-endian.patch b/0003-evergreen-big-endian.patch new file mode 100644 index 0000000..ccf1717 --- /dev/null +++ b/0003-evergreen-big-endian.patch @@ -0,0 +1,26 @@ +From 0ec3bdb2264b491fd3f5dc4e638b4c12611ef219 Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko +Date: Sun, 20 Mar 2016 13:27:45 +0100 +Subject: [PATCH 3/4] evergreen big endian + +Signed-off-by: Igor Gnatenko +--- + src/gallium/drivers/r600/r600_state_common.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c +index cac240e..4b620a1 100644 +--- a/src/gallium/drivers/r600/r600_state_common.c ++++ b/src/gallium/drivers/r600/r600_state_common.c +@@ -2716,7 +2716,7 @@ uint32_t r600_translate_colorformat(enum chip_class chip, enum pipe_format forma + + uint32_t r600_colorformat_endian_swap(uint32_t colorformat, bool do_endian_swap) + { +- if (R600_BIG_ENDIAN) { ++ if (0 && R600_BIG_ENDIAN) { + switch(colorformat) { + /* 8-bit buffers. */ + case V_0280A0_COLOR_4_4: +-- +2.7.4 + diff --git a/0004-bigendian-assert.patch b/0004-bigendian-assert.patch new file mode 100644 index 0000000..8de9975 --- /dev/null +++ b/0004-bigendian-assert.patch @@ -0,0 +1,27 @@ +From 6ccae713acc457d7df6ab15e124a7d77c5093213 Mon Sep 17 00:00:00 2001 +From: Igor Gnatenko +Date: Sun, 20 Mar 2016 13:28:07 +0100 +Subject: [PATCH 4/4] bigendian assert + +Signed-off-by: Igor Gnatenko +--- + src/gallium/auxiliary/util/u_math.h | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/src/gallium/auxiliary/util/u_math.h b/src/gallium/auxiliary/util/u_math.h +index ecb1d63..90ada14 100644 +--- a/src/gallium/auxiliary/util/u_math.h ++++ b/src/gallium/auxiliary/util/u_math.h +@@ -59,6 +59,9 @@ + extern "C" { + #endif + ++#ifdef PIPE_ARCH_BIG_ENDIAN ++#include ++#endif + + #ifndef M_SQRT2 + #define M_SQRT2 1.41421356237309504880 +-- +2.7.4 + diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d6550fe --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +VERSION ?= 18.2.2 +SANITIZE ?= 1 + +DIRNAME = mesa-${VERSION} + +all: archive + +clean: + rm -rf $(DIRNAME)/ + rm -f mesa-${VERSION}.tar.xz + +clone: clean + curl -O https://mesa.freedesktop.org/archive/mesa-${VERSION}.tar.xz + tar xf mesa-${VERSION}.tar.xz + +sanitize: clone vl_mpeg12_decoder.c vl_decoder.c +ifdef SANITIZE + cat < vl_mpeg12_decoder.c > $(DIRNAME)/src/gallium/auxiliary/vl/vl_mpeg12_decoder.c + cat < vl_decoder.c > $(DIRNAME)/src/gallium/auxiliary/vl/vl_decoder.c +endif + +archive: clone sanitize + tar caf ${DIRNAME}.tar.xz ${DIRNAME} diff --git a/Mesa-MLAA-License-Clarification-Email.txt b/Mesa-MLAA-License-Clarification-Email.txt new file mode 100644 index 0000000..30bdf2e --- /dev/null +++ b/Mesa-MLAA-License-Clarification-Email.txt @@ -0,0 +1,117 @@ + +Subject: RE: Question about Mesa MLAA license +From: Jorge Jimenez +Date: 01/08/2013 12:50 PM +To: Tom Callaway +CC: "jorge@iryoku.com" + +Yes to both questions. + +Thanks, +Jorge + +From: Tom Callaway +Sent: January 8, 2013 6:49 PM +To: Jorge Jimenez +CC: jorge@iryoku.com +Subject: Re: Question about Mesa MLAA license + +On 01/08/2013 12:39 PM, Jorge Jimenez wrote: +> Hi Tom, +> +> What we meant with that is that we made an exception for clause 2. +> Instead of clause 2, in the case of the Mesa project, you have to name +> the technique Jimenez's MLAA in the config options of Mesa. We did that +> just to allow them to solve license issues. This exception should be for +> the Mesa project, and any project using Mesa, like Fedora. +> +> We want to widespread usage of our MLAA, so we want to avoid any kind of +> license complications. Hope current one is good for Fedora, if not +> please tell, and we'll see what we can do! + +Okay, a few more questions: + +* If Fedora decides to simply reproduce the quoted statement: +"Uses Jimenez's MLAA. Copyright (C) 2010 by Jorge Jimenez, Belen Masia, +Jose I. Echevarria, Fernando Navarro and Diego Gutierrez." + +Specifically, if this is done as part of documentation included with +Mesa, is that sufficient to meet clause 2 even if the Mesa config option +is not set as described in your exception? + +* Currently, the Mesa config option for MLAA says: "Morphological +anti-aliasing based on Jimenez\' MLAA. 0 to disable, 8 for default +quality". Is this in compliance with your exception? + +Thanks again, + +~tom + +== +Fedora Project + +Subject: RE: Question about Mesa MLAA license +From: Jorge Jimenez +Date: 01/08/2013 12:39 PM +To: "jorge@iryoku.com" , Tom Callaway + +Hi Tom, + +What we meant with that is that we made an exception for clause 2. +Instead of clause 2, in the case of the Mesa project, you have to name +the technique Jimenez's MLAA in the config options of Mesa. We did that +just to allow them to solve license issues. This exception should be for +the Mesa project, and any project using Mesa, like Fedora. + +We want to widespread usage of our MLAA, so we want to avoid any kind of +license complications. Hope current one is good for Fedora, if not +please tell, and we'll see what we can do! + +Cheers, +Jorge + +From: Tom Callaway +Sent: January 8, 2013 6:30 PM +To: jorge@iryoku.com +Subject: Question about Mesa MLAA license + +Jorge, + +Thanks for all of your fantastic graphics work! I have been auditing +Fedora (a popular distribution of Linux) for license compliance and I +came across your MLAA code in Mesa. + +The license says: + + * 2. Redistributions in binary form must reproduce the following +statement: + * + * "Uses Jimenez's MLAA. Copyright (C) 2010 by Jorge Jimenez, Belen Masia, + * Jose I. Echevarria, Fernando Navarro and Diego Gutierrez." + * + * Only for use in the Mesa project, this point 2 is filled by naming the + * technique Jimenez's MLAA in the Mesa config options. + +That wording is unclear. When you say "Only for use in the Mesa +project...", it seems like you could either be saying: + +- This code may only be used as part of Mesa. + +OR + +- In Mesa, you can comply with clause 2 by simply selecting "Jimenez's +MLAA" in the Mesa config options. + +***** + +If the first item is true, then we may have to remove the MLAA code from +Fedora's copy of Mesa. However, looking at the license on your SMAA +code, I do not believe it to be the case. Please let me know either way! + +Thanks in advance, + +Tom Callaway +Fedora Legal + +== +Fedora Project diff --git a/mesa-18.2.2.tar.xz b/mesa-18.2.2.tar.xz new file mode 100644 index 0000000..7d467e9 Binary files /dev/null and b/mesa-18.2.2.tar.xz differ diff --git a/mesa.spec b/mesa.spec new file mode 100644 index 0000000..4188f5f --- /dev/null +++ b/mesa.spec @@ -0,0 +1,473 @@ +%undefine _annotated_build + +%define base_drivers swrast,nouveau,radeon,r200 + +%ifarch %{ix86} x86_64 +%define platform_drivers ,i915,i965 +%define with_vmware 1 +%define vulkan_drivers --with-vulkan-drivers=intel,radeon +%else +%define vulkan_drivers --with-vulkan-drivers=radeon +%endif + +%ifarch %{arm} aarch64 +%define with_etnaviv 1 +%define with_freedreno 1 +%define with_tegra 1 +%define with_vc4 1 +%endif + +%define dri_drivers --with-dri-drivers=%{?base_drivers}%{?platform_drivers} + +%global sanitize 0 + +Name: mesa +Summary: Mesa graphics libraries +Version: 18.2.2 +Release: 4 +License: MIT +URL: https://www.mesa3d.org +Source0: %{name}-%{version}.tar.xz +Source1: vl_decoder.c +Source2: vl_mpeg12_decoder.c +Source3: Makefile +# src/gallium/auxiliary/postprocess/pp_mlaa* have an ... interestingly worded license. +# Source4 contains email correspondence clarifying the license terms. +Source4: Mesa-MLAA-License-Clarification-Email.txt + +Patch1: 0001-llvm-SONAME-without-version.patch +Patch3: 0003-evergreen-big-endian.patch +Patch4: 0004-bigendian-assert.patch + +# Disable rgb10 configs by default: +# https://bugzilla.redhat.com/show_bug.cgi?id=1560481 +Patch7: 0001-gallium-Disable-rgb10-configs-by-default.patch + +BuildRequires: gcc gcc-c++ automake autoconf libtool kernel-headers libdrm-devel libXxf86vm-devel expat-devel +BuildRequires: xorg-x11-proto-devel imake libselinux-devel libXrandr-devel libXext-devel libXfixes-devel libXdamage-devel +BuildRequires: libXi-devel libXmu-devel libxshmfence-devel elfutils python3 python2 gettext llvm-devel clang-devel +BuildRequires: elfutils-libelf-devel python3-libxml2 python2-libxml2 libudev-devel bison flex +BuildRequires: wayland-devel wayland-protocols-devel libvdpau-devel libva-devel zlib-devel +BuildRequires: libomxil-bellagio-devel libclc-devel opencl-filesystem vulkan-devel python3-mako python2-mako +%ifarch %{valgrind_arches} +BuildRequires: valgrind-devel +%endif +BuildRequires: libglvnd-devel + +%description +%{summary}. + +%package filesystem +Summary: Mesa driver filesystem +Provides: mesa-dri-filesystem = %{?epoch:%{epoch}:}%{version}-%{release} +Obsoletes: mesa-dri-filesystem < %{?epoch:%{epoch}:}%{version}-%{release} + +%description filesystem +%{summary}. + +%package libGL +Summary: Mesa libGL runtime libraries +Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: libglvnd-glx%{?_isa} >= 1:1.0.1-0.9 + +%description libGL +%{summary}. + +%package libGL-devel +Summary: Mesa libGL development package +Requires: %{name}-libGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: libglvnd-devel%{?_isa} +Provides: libGL-devel libGL-devel%{?_isa} + +%description libGL-devel +%{summary}. + +%package libEGL +Summary: Mesa libEGL runtime libraries +Requires: libglvnd-egl%{?_isa} + +%description libEGL +%{summary}. + +%package libEGL-devel +Summary: Mesa libEGL development package +Requires: %{name}-libEGL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: libglvnd-devel%{?_isa} +Provides: libEGL-devel libEGL-devel%{?_isa} + +%description libEGL-devel +%{summary}. + +%package libGLES +Summary: Mesa libGLES runtime libraries +Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: libglvnd-gles%{?_isa} + +%description libGLES +%{summary}. + +%package libGLES-devel +Summary: Mesa libGLES development package +Requires: %{name}-libGLES%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: libglvnd-devel%{?_isa} +Provides: libGLES-devel libGLES-devel%{?_isa} + +%description libGLES-devel +%{summary}. + +%package dri-drivers +Summary: Mesa-based DRI drivers +Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description dri-drivers +%{summary}. + +%package omx-drivers +Summary: Mesa-based OMX drivers +Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description omx-drivers +%{summary}. + +%package vdpau-drivers +Summary: Mesa-based VDPAU drivers +Requires: %{name}-filesystem%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description vdpau-drivers +%{summary}. + +%package libOSMesa +Summary: Mesa offscreen rendering libraries +Requires: %{name}-libglapi%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Provides: libOSMesa libOSMesa%{?_isa} + +%description libOSMesa +%{summary}. + +%package libOSMesa-devel +Summary: Mesa offscreen rendering development package +Requires: %{name}-libOSMesa%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description libOSMesa-devel +%{summary}. + +%package libgbm +Summary: Mesa gbm runtime library +Provides: libgdm libgbm%{?_isa} + +%description libgbm +%{summary}. + +%package libgbm-devel +Summary: Mesa libgbm development package +Requires: %{name}-libgbm%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Provides: libgbm-devel libgbm-devel%{?_isa} + +%description libgbm-devel +%{summary}. + +%package libxatracker +Summary: Mesa XA state tracker +Provides: libxatracker libxatracker%{?_isa} + +%description libxatracker +%{summary}. + +%package libxatracker-devel +Summary: Mesa XA state tracker development package +Requires: %{name}-libxatracker%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Provides: libxatracker-devel libxatracker-devel%{?_isa} + +%description libxatracker-devel +%{summary}. + +%package libglapi +Summary: Mesa shared glapi +Provides: libglapi libglapi%{?_isa} + +%description libglapi +%{summary}. + +%package libOpenCL +Summary: Mesa OpenCL runtime library +Requires: ocl-icd%{?_isa} +Requires: libclc%{?_isa} +Requires: %{name}-libgbm%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: opencl-filesystem + +%description libOpenCL +%{summary}. + +%package libOpenCL-devel +Summary: Mesa OpenCL development package +Requires: %{name}-libOpenCL%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description libOpenCL-devel +%{summary}. + +%package libd3d +Summary: Mesa Direct3D9 state tracker + +%description libd3d +%{summary}. + +%package libd3d-devel +Summary: Mesa Direct3D9 state tracker development package +Requires: %{name}-libd3d%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} + +%description libd3d-devel +%{summary}. + +%package vulkan-drivers +Summary: Mesa Vulkan drivers +Requires: vulkan%{?_isa} + +%description vulkan-drivers +The drivers with support for the Vulkan API. + +%package vulkan-devel +Summary: Mesa Vulkan development files +Requires: %{name}-vulkan-drivers%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} +Requires: vulkan-devel + +%description vulkan-devel +Headers for development with the Vulkan API. + +%prep +%autosetup -n %{name}-%{version} -p1 + +cmp %{SOURCE1} src/gallium/auxiliary/vl/vl_decoder.c +cmp %{SOURCE2} src/gallium/auxiliary/vl/vl_mpeg12_decoder.c +cp %{SOURCE4} docs/ + +%build +cmp %{SOURCE1} src/gallium/auxiliary/vl/vl_decoder.c +cmp %{SOURCE2} src/gallium/auxiliary/vl/vl_mpeg12_decoder.c + +autoreconf -ivf + +%ifarch %{ix86} +%global asm_flags --disable-asm +%endif + +%configure \ + %{?asm_flags} \ + --enable-libglvnd \ + --enable-selinux \ + --enable-gallium-osmesa \ + --with-dri-driverdir=%{_libdir}/dri \ + --enable-egl \ + --disable-gles1 \ + --enable-gles2 \ + --disable-xvmc \ + --enable-vdpau \ + --enable-va \ + --with-platforms=x11,drm,surfaceless,wayland \ + --enable-shared-glapi \ + --enable-gbm \ + --enable-omx-bellagio \ + --enable-opencl --enable-opencl-icd \ + --enable-glx-tls \ + --enable-texture-float=yes \ + %{?vulkan_drivers} \ + --enable-llvm \ + --enable-llvm-shared-libs \ + --enable-dri \ + --enable-xa \ + --enable-nine \ + --with-gallium-drivers=%{?with_vmware:svga,}radeonsi,r600,swrast,%{?with_freedreno:freedreno,}%{?with_etnaviv:etnaviv,imx,}%{?with_tegra:tegra,}%{?with_vc4:vc4,}virgl,r300,nouveau \ + %{?dri_drivers} + +%make_build MKDEP=/bin/true V=1 + +%install +%make_install + +rm -f %{buildroot}%{_libdir}/vdpau/*.so +rm -f %{buildroot}%{_libdir}/libGLX_mesa.so +rm -f %{buildroot}%{_libdir}/libEGL_mesa.so +rm -f %{buildroot}%{_libdir}/libGLES* + +ln -s %{_libdir}/libGLX_mesa.so.0 %{buildroot}%{_libdir}/libGLX_system.so.0 + +rm -f %{buildroot}%{_includedir}/GL/w*.h + +mkdir -p %{buildroot}/%{_includedir}/vulkan/ +rm -f %{buildroot}/%{_includedir}/vulkan/vk_platform.h +rm -f %{buildroot}/%{_includedir}/vulkan/vulkan.h + +%delete_la + +pushd %{buildroot}%{_libdir} +for i in libOSMesa*.so libGL.so ; do + eu-findtextrel $i && exit 1 +done +popd + +%ldconfig_scriptlets libglapi +%ldconfig_scriptlets libOSMesa +%ldconfig_scriptlets libgbm +%ldconfig_scriptlets libxatracker +%ldconfig_scriptlets libOpenCL + +%files filesystem +%defattr(-,root,root) +%doc docs/Mesa-MLAA-License-Clarification-Email.txt +%dir %{_libdir}/dri +%dir %{_libdir}/vdpau + +%files libGL +%defattr(-,root,root) +%{_libdir}/libGLX_mesa.so.0* +%{_libdir}/libGLX_system.so.0* + +%files libGL-devel +%defattr(-,root,root) +%{_includedir}/GL/gl*.h +%{_includedir}/GL/internal/dri_interface.h +%{_libdir}/libglapi.so +%{_libdir}/pkgconfig/dri.pc +%{_libdir}/pkgconfig/gl.pc + +%files libEGL +%defattr(-,root,root) +%{_datadir}/glvnd/egl_vendor.d/50_mesa.json +%{_libdir}/libEGL_mesa.so.0* + +%files libEGL-devel +%defattr(-,root,root) +%{_includedir}/EGL/egl*.h +%{_includedir}/KHR/khrplatform.h +%{_libdir}/pkgconfig/egl.pc + +%files libGLES +%defattr(-,root,root) + +%files libGLES-devel +%defattr(-,root,root) +%{_includedir}/GLES*/gl*.h +%{_libdir}/pkgconfig/glesv2.pc + +%files libglapi +%defattr(-,root,root) +%{_libdir}/libglapi.so.0* + +%files libOSMesa +%defattr(-,root,root) +%{_libdir}/libOSMesa.so.8* + +%files libOSMesa-devel +%defattr(-,root,root) +%{_includedir}/GL/osmesa.h +%{_libdir}/libOSMesa.so +%{_libdir}/pkgconfig/osmesa.pc + +%files libgbm +%defattr(-,root,root) +%{_libdir}/libgbm.so.1 +%{_libdir}/libgbm.so.1.* + +%files libgbm-devel +%defattr(-,root,root) +%{_libdir}/libgbm.so +%{_includedir}/gbm.h +%{_libdir}/pkgconfig/gbm.pc + +%files libxatracker +%defattr(-,root,root) +%{_libdir}/libxatracker.so.2* + +%files libxatracker-devel +%defattr(-,root,root) +%{_libdir}/libxatracker.so +%{_includedir}/xa_*.h +%{_libdir}/pkgconfig/xatracker.pc + +%files libOpenCL +%defattr(-,root,root) +%{_libdir}/libMesaOpenCL.so.* +%{_sysconfdir}/OpenCL/vendors/mesa.icd + +%files libOpenCL-devel +%defattr(-,root,root) +%{_libdir}/libMesaOpenCL.so + +%files libd3d +%defattr(-,root,root) +%{_libdir}/d3d/*.so.* + +%files libd3d-devel +%defattr(-,root,root) +%{_libdir}/pkgconfig/d3d.pc +%{_includedir}/d3dadapter/ +%{_libdir}/d3d/*.so + +%files dri-drivers +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/drirc +%{_libdir}/dri/radeon_dri.so +%{_libdir}/dri/r200_dri.so +%{_libdir}/dri/nouveau_vieux_dri.so +%{_libdir}/dri/r300_dri.so +%{_libdir}/dri/r600_dri.so +%{_libdir}/dri/radeonsi_dri.so +%{_libdir}/dri/nouveau_dri.so +%{_libdir}/dri/nouveau_drv_video.so +%{_libdir}/dri/r600_drv_video.so +%{_libdir}/dri/radeonsi_drv_video.so +%{_libdir}/gallium-pipe/*.so +%{_libdir}/dri/kms_swrast_dri.so +%{_libdir}/dri/swrast_dri.so +%{_libdir}/dri/virtio_gpu_dri.so +%ifarch %{ix86} x86_64 +%{_libdir}/dri/i915_dri.so +%{_libdir}/dri/i965_dri.so +%{_libdir}/dri/vmwgfx_dri.so +%endif +%ifarch %{arm} aarch64 +%{_libdir}/dri/vc4_dri.so +%{_libdir}/dri/kgsl_dri.so +%{_libdir}/dri/msm_dri.so +%{_libdir}/dri/etnaviv_dri.so +%{_libdir}/dri/imx-drm_dri.so +%{_libdir}/dri/tegra_dri.so +%endif + +%files omx-drivers +%defattr(-,root,root) +%{_libdir}/bellagio/libomx_mesa.so + +%files vdpau-drivers +%defattr(-,root,root) +%{_libdir}/vdpau/libvdpau_nouveau.so.1* +%{_libdir}/vdpau/libvdpau_r*.so.1* +%if 0%{?with_tegra} +%{_libdir}/vdpau/libvdpau_tegra.so.1* +%endif + +%files vulkan-drivers +%ifarch %{ix86} x86_64 +%{_libdir}/libvulkan_intel.so +%{_datadir}/vulkan/icd.d/intel_icd.*.json +%endif +%{_libdir}/libvulkan_radeon.so +%{_datadir}/vulkan/icd.d/radeon_icd.*.json + +%files vulkan-devel +%{_includedir}/vulkan/ + +%changelog +* Tue Sep 24 2019 openEuler Buildteam - 19.2.2-4 +- Type: enhance +- Id:NA +- SUG:NA +- DESC: rewrite it without merging packages + +* Sat Sep 21 2019 openEuler Buildteam - 19.2.2-3 +- Type:bugfix +- Id:NA +- SUG:NA +- DESC: restore previous version of 18.2.2-1 + +* Sat Sep 21 2019 openEuler Buildteam - 18.2.2-2 +- Package init diff --git a/vl_decoder.c b/vl_decoder.c new file mode 100644 index 0000000..1e715b6 --- /dev/null +++ b/vl_decoder.c @@ -0,0 +1,20 @@ +#include "vl_decoder.h" +bool +vl_profile_supported(struct pipe_screen *screen, enum pipe_video_profile profile, + enum pipe_video_entrypoint entrypoint) +{ + return false; +} + +int +vl_level_supported(struct pipe_screen *screen, enum pipe_video_profile profile) +{ + return 0; +} + +struct pipe_video_codec * +vl_create_decoder(struct pipe_context *pipe, + const struct pipe_video_codec *templat) +{ + return NULL; +} diff --git a/vl_mpeg12_decoder.c b/vl_mpeg12_decoder.c new file mode 100644 index 0000000..85ac2c9 --- /dev/null +++ b/vl_mpeg12_decoder.c @@ -0,0 +1,7 @@ +#include "vl_mpeg12_decoder.h" +struct pipe_video_codec * +vl_create_mpeg12_decoder(struct pipe_context *context, + const struct pipe_video_codec *templat) +{ + return NULL; +}