From 9c488ba4ae7631d0b30847085cefa7744d0884bf Mon Sep 17 00:00:00 2001 From: Neal Gompa Date: Tue, 25 Jul 2023 10:28:01 -0400 Subject: [PATCH] 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. --- mesa.spec | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/mesa.spec b/mesa.spec index ae03e19..21839b1 100644 --- a/mesa.spec +++ b/mesa.spec @@ -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