SHA256
1
0
forked from pool/Mesa

Accepting request 883206 from home:Andreas_Schwab:Factory

- Enable radeon and nouveau drivers on riscv64

OBS-URL: https://build.opensuse.org/request/show/883206
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=1027
This commit is contained in:
Stefan Dirsch 2021-04-09 14:39:10 +00:00 committed by Git OBS Bridge
parent b0043c3bb6
commit 9a7588e465
4 changed files with 26 additions and 16 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 6 08:38:16 UTC 2021 - Andreas Schwab <schwab@suse.de>
- Enable radeon and nouveau drivers on riscv64
-------------------------------------------------------------------
Tue Mar 30 19:00:03 UTC 2021 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -46,7 +46,7 @@
%define with_vulkan 0
%define with_llvm 0
%ifarch %{ix86} x86_64 %{arm} aarch64 ppc64 ppc64le
%ifarch %{ix86} x86_64 %{arm} aarch64 ppc64 ppc64le riscv64
%define gallium_loader 1
%else
%define gallium_loader 0
@ -56,7 +56,7 @@
%define vdpau_nouveau 0
%define vdpau_radeon 0
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
%define xvmc_support 1
%define vdpau_nouveau 1
%define vdpau_radeon 1
@ -787,7 +787,7 @@ egl_platforms=x11,wayland
-Ddri-drivers=nouveau \
-Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast,virgl,freedreno,vc4,etnaviv,lima,panfrost,kmsro,v3d \
%else
%ifarch ppc64 ppc64le
%ifarch ppc64 ppc64le riscv64
-Ddri-drivers=nouveau \
-Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast \
%else
@ -981,7 +981,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%endif
%if %{drivers}
%ifarch aarch64 %{ix86} x86_64 %{arm} ppc64 ppc64le
%ifarch aarch64 %{ix86} x86_64 %{arm} ppc64 ppc64le riscv64
%files -n libxatracker2
%{_libdir}/libxatracker.so.2*
@ -1021,7 +1021,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%{_libdir}/vdpau/libvdpau_r600.so.1.0.0
%endif
%ifarch %{ix86} x86_64 ppc64 ppc64le %{arm} aarch64
%ifarch %{ix86} x86_64 ppc64 ppc64le %{arm} aarch64 riscv64
%files -n libvdpau_radeonsi
%{_libdir}/vdpau/libvdpau_radeonsi.so
%{_libdir}/vdpau/libvdpau_radeonsi.so.1
@ -1042,7 +1042,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%files -n Mesa-dri
%dir %{_libdir}/dri
%{_libdir}/dri/*_dri.so
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
%exclude %{_libdir}/dri/nouveau_dri.so
%exclude %{_libdir}/dri/nouveau_vieux_dri.so
%endif
@ -1057,7 +1057,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%{_libdir}/gallium-pipe/pipe_*.so
%endif
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
%files -n Mesa-dri-nouveau
%{_libdir}/dri/nouveau_dri.so
%{_libdir}/dri/nouveau_vieux_dri.so
@ -1108,7 +1108,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%endif
%if %{drivers}
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
%files -n Mesa-libva
%{_libdir}/dri/*_drv_video.so
%endif

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Apr 6 08:38:16 UTC 2021 - Andreas Schwab <schwab@suse.de>
- Enable radeon and nouveau drivers on riscv64
-------------------------------------------------------------------
Tue Mar 30 19:00:03 UTC 2021 - Stefan Dirsch <sndirsch@suse.com>

View File

@ -45,7 +45,7 @@
%define with_vulkan 0
%define with_llvm 0
%ifarch %{ix86} x86_64 %{arm} aarch64 ppc64 ppc64le
%ifarch %{ix86} x86_64 %{arm} aarch64 ppc64 ppc64le riscv64
%define gallium_loader 1
%else
%define gallium_loader 0
@ -55,7 +55,7 @@
%define vdpau_nouveau 0
%define vdpau_radeon 0
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
%define xvmc_support 1
%define vdpau_nouveau 1
%define vdpau_radeon 1
@ -786,7 +786,7 @@ egl_platforms=x11,wayland
-Ddri-drivers=nouveau \
-Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast,virgl,freedreno,vc4,etnaviv,lima,panfrost,kmsro,v3d \
%else
%ifarch ppc64 ppc64le
%ifarch ppc64 ppc64le riscv64
-Ddri-drivers=nouveau \
-Dgallium-drivers=r300,r600,radeonsi,nouveau,swrast \
%else
@ -980,7 +980,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%endif
%if %{drivers}
%ifarch aarch64 %{ix86} x86_64 %{arm} ppc64 ppc64le
%ifarch aarch64 %{ix86} x86_64 %{arm} ppc64 ppc64le riscv64
%files -n libxatracker2
%{_libdir}/libxatracker.so.2*
@ -1020,7 +1020,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%{_libdir}/vdpau/libvdpau_r600.so.1.0.0
%endif
%ifarch %{ix86} x86_64 ppc64 ppc64le %{arm} aarch64
%ifarch %{ix86} x86_64 ppc64 ppc64le %{arm} aarch64 riscv64
%files -n libvdpau_radeonsi
%{_libdir}/vdpau/libvdpau_radeonsi.so
%{_libdir}/vdpau/libvdpau_radeonsi.so.1
@ -1041,7 +1041,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%files -n Mesa-dri
%dir %{_libdir}/dri
%{_libdir}/dri/*_dri.so
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
%exclude %{_libdir}/dri/nouveau_dri.so
%exclude %{_libdir}/dri/nouveau_vieux_dri.so
%endif
@ -1056,7 +1056,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%{_libdir}/gallium-pipe/pipe_*.so
%endif
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
%files -n Mesa-dri-nouveau
%{_libdir}/dri/nouveau_dri.so
%{_libdir}/dri/nouveau_vieux_dri.so
@ -1107,7 +1107,7 @@ echo "The \"Mesa\" package does not have the ability to render, but is supplemen
%endif
%if %{drivers}
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le
%ifarch %{ix86} x86_64 aarch64 %{arm} ppc64 ppc64le riscv64
%files -n Mesa-libva
%{_libdir}/dri/*_drv_video.so
%endif