1
0
forked from rpms/mesa

Enable all aarch64 drivers for x86 for x86 emulation on aarch64

In order to enable hardware acceleration when running x86 applications
on AArch64, the drivers that are typically only enabled on AArch64
need to be built for x86 architectures too.

This allows us to set up x86 containers on AArch64 that can correctly
interface with hardware properly.
This commit is contained in:
Neal Gompa 2023-07-25 10:28:01 -04:00 committed by ngompa
parent 8265d5b42b
commit 9c488ba4ae

View File

@ -19,10 +19,10 @@
%endif
%global with_iris 1
%global with_xa 1
%global platform_vulkan ,intel,intel_hasvk
%global intel_platform_vulkan ,intel,intel_hasvk
%endif
%ifarch aarch64
%ifarch aarch64 x86_64 %{ix86}
%if !0%{?rhel}
%global with_etnaviv 1
%global with_lima 1
@ -34,7 +34,7 @@
%global with_panfrost 1
%global with_tegra 1
%global with_xa 1
%global platform_vulkan ,broadcom,freedreno,panfrost
%global extra_platform_vulkan ,broadcom,freedreno,panfrost
%endif
%ifnarch s390x
@ -57,7 +57,7 @@
%bcond_with valgrind
%endif
%global vulkan_drivers swrast%{?base_vulkan}%{?platform_vulkan}
%global vulkan_drivers swrast%{?base_vulkan}%{?intel_platform_vulkan}%{?extra_platform_vulkan}
Name: mesa
Summary: Mesa graphics libraries
@ -545,7 +545,7 @@ popd
%{_libdir}/dri/i915_dri.so
%{_libdir}/dri/iris_dri.so
%endif
%ifarch aarch64
%ifarch aarch64 x86_64 %{ix86}
%{_libdir}/dri/ingenic-drm_dri.so
%{_libdir}/dri/imx-drm_dri.so
%{_libdir}/dri/imx-lcdif_dri.so
@ -653,7 +653,7 @@ popd
%{_libdir}/libvulkan_intel_hasvk.so
%{_datadir}/vulkan/icd.d/intel_hasvk_icd.*.json
%endif
%ifarch aarch64
%ifarch aarch64 x86_64 %{ix86}
%{_libdir}/libvulkan_broadcom.so
%{_datadir}/vulkan/icd.d/broadcom_icd.*.json
%{_libdir}/libvulkan_freedreno.so