From 713b6396d60963916e6da4fe2dc41d2ea16fe532 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Sat, 1 Jul 2023 20:06:48 -0700 Subject: [PATCH] media-libs/mesa: Limit Vulkan ray tracing deps to amd64 To match the upstream meson.build. Signed-off-by: Matt Turner --- media-libs/mesa/mesa-23.1.3.ebuild | 4 ++-- media-libs/mesa/mesa-9999.ebuild | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/media-libs/mesa/mesa-23.1.3.ebuild b/media-libs/mesa/mesa-23.1.3.ebuild index 9967d104c9cff..c44daa0c39c2e 100644 --- a/media-libs/mesa/mesa-23.1.3.ebuild +++ b/media-libs/mesa/mesa-23.1.3.ebuild @@ -132,7 +132,7 @@ PER_SLOT_DEPSTR=" !opencl? ( sys-devel/llvm:@SLOT@[${LLVM_USE_DEPS}] ) opencl? ( sys-devel/clang:@SLOT@[${LLVM_USE_DEPS}] ) opencl? ( dev-util/spirv-llvm-translator:@SLOT@ ) - vulkan? ( video_cards_intel? ( dev-util/spirv-llvm-translator:@SLOT@ ) ) + vulkan? ( video_cards_intel? ( amd64? ( dev-util/spirv-llvm-translator:@SLOT@ ) ) ) ) " LLVM_DEPSTR=" @@ -194,7 +194,7 @@ llvm_check_deps() { if use opencl; then has_version "sys-devel/clang:${LLVM_SLOT}[${LLVM_USE_DEPS}]" || return 1 fi - if use opencl || { use vulkan && use video_cards_intel; }; then + if use opencl || { use vulkan && use video_cards_intel && use amd64; }; then has_version "dev-util/spirv-llvm-translator:${LLVM_SLOT}" || return 1 fi has_version "sys-devel/llvm:${LLVM_SLOT}[${LLVM_USE_DEPS}]" diff --git a/media-libs/mesa/mesa-9999.ebuild b/media-libs/mesa/mesa-9999.ebuild index 9967d104c9cff..c44daa0c39c2e 100644 --- a/media-libs/mesa/mesa-9999.ebuild +++ b/media-libs/mesa/mesa-9999.ebuild @@ -132,7 +132,7 @@ PER_SLOT_DEPSTR=" !opencl? ( sys-devel/llvm:@SLOT@[${LLVM_USE_DEPS}] ) opencl? ( sys-devel/clang:@SLOT@[${LLVM_USE_DEPS}] ) opencl? ( dev-util/spirv-llvm-translator:@SLOT@ ) - vulkan? ( video_cards_intel? ( dev-util/spirv-llvm-translator:@SLOT@ ) ) + vulkan? ( video_cards_intel? ( amd64? ( dev-util/spirv-llvm-translator:@SLOT@ ) ) ) ) " LLVM_DEPSTR=" @@ -194,7 +194,7 @@ llvm_check_deps() { if use opencl; then has_version "sys-devel/clang:${LLVM_SLOT}[${LLVM_USE_DEPS}]" || return 1 fi - if use opencl || { use vulkan && use video_cards_intel; }; then + if use opencl || { use vulkan && use video_cards_intel && use amd64; }; then has_version "dev-util/spirv-llvm-translator:${LLVM_SLOT}" || return 1 fi has_version "sys-devel/llvm:${LLVM_SLOT}[${LLVM_USE_DEPS}]"