commit: 831e89221ff4f2db59586e262bdf3a7f04e3c256 Author: James Calligeros <jcalligeros99 <AT> gmail <DOT> com> AuthorDate: Sat Apr 12 02:42:07 2025 +0000 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org> CommitDate: Fri May 2 01:43:22 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=831e8922
profiles: add asahi VIDEO_CARDS value and add arch use masks This will be used to build support for Apple AGX GPUs, as found in Apple Silicon Macs and supported by the Asahi and Honeykrisp Mesa drivers (OpenGL and Vulkan respectively). The arch based used masks are a little questionable since the driver will have virtgpu DRM native-context support. For now just unmask it on the native arm64 architecture and x86 and amd64 for emulation of x86 software. Signed-off-by: James Calligeros <jcalligeros99 <AT> gmail.com> Signed-off-by: Janne Grunau <j <AT> jannau.net> Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org> profiles/arch/amd64/use.mask | 3 +++ profiles/arch/arm64/use.mask | 1 + profiles/arch/base/use.mask | 5 +++++ profiles/desc/video_cards.desc | 1 + 4 files changed, 10 insertions(+) diff --git a/profiles/arch/amd64/use.mask b/profiles/arch/amd64/use.mask index d397dd61781c..6fa65aba43de 100644 --- a/profiles/arch/amd64/use.mask +++ b/profiles/arch/amd64/use.mask @@ -146,6 +146,9 @@ -video_cards_vmware -video_cards_qxl +# unmask video_cards with virtgpu DRM native-context support +-video_cards_asahi + # Simon Stelling <[email protected]> (2007-02-16) # Since this profile forces >=portage-2.1.2, we can unmask all # SIMD assembler flags diff --git a/profiles/arch/arm64/use.mask b/profiles/arch/arm64/use.mask index 59aee98d521a..eb3669e0a16d 100644 --- a/profiles/arch/arm64/use.mask +++ b/profiles/arch/arm64/use.mask @@ -121,6 +121,7 @@ snapcast # Unmask ARM-only video-cards -video_cards_amdgpu +-video_cards_asahi -video_cards_d3d12 -video_cards_exynos -video_cards_freedreno diff --git a/profiles/arch/base/use.mask b/profiles/arch/base/use.mask index 1ea6f8b83142..4dd8214f5b70 100644 --- a/profiles/arch/base/use.mask +++ b/profiles/arch/base/use.mask @@ -207,6 +207,11 @@ video_cards_vivante # linux-only drivers video_cards_qxl +# drivers with virtgpu DRM native-context support +# these could be unmasked on all architectures with qemu system target but +# unmasking only tested and actually used ones is a sane default. +video_cards_asahi + # not needed on non-x86, non-amd64, non-ppc systems input_devices_synaptics input_devices_wacom diff --git a/profiles/desc/video_cards.desc b/profiles/desc/video_cards.desc index b5688c8783df..da5843660cdc 100644 --- a/profiles/desc/video_cards.desc +++ b/profiles/desc/video_cards.desc @@ -6,6 +6,7 @@ # Keep it sorted. amdgpu - VIDEO_CARDS setting to build driver for AMDGPU video cards +asahi - VIDEO_CARDS setting to build support for Apple AGX GPUs ast - VIDEO_CARDS setting to build driver for ASpeedTech video cards d3d12 - VIDEO_CARDS seeting to build driver for Microsoft WSL video cards dummy - VIDEO_CARDS setting to build driver for dummy video cards
