Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

profiles/graphic_drivers: Add rusticl drivers as conditional_packages #119

Merged
merged 1 commit into from
Jun 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions profiles/pci/graphic_drivers/profiles.toml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ class_ids = "0300 0302"
vendor_ids = "10de"
priority = 0
packages = 'mesa lib32-mesa libva-mesa-driver mesa-vdpau opencl-clover-mesa lib32-opencl-clover-mesa lib32-libva-mesa-driver vulkan-nouveau'
conditional_packages = """
if ! lspci -d "*:*:030x" | grep -q NVIDIA; then
echo "opencl-rusticl-mesa lib32-opencl-rusticl-mesa"
fi
"""

[intel]
desc = "Mesa open source driver for Intel"
Expand All @@ -128,6 +133,11 @@ vendor_ids = "8086"
device_ids = "*"
priority = 4
packages = 'mesa lib32-mesa libva-intel-driver lib32-libva-intel-driver opencl-clover-mesa lib32-opencl-clover-mesa vulkan-intel lib32-vulkan-intel intel-media-driver mesa-vdpau lib32-mesa-vdpau'
conditional_packages = """
if ! lspci -d "*:*:030x" | grep -q NVIDIA; then
echo "opencl-rusticl-mesa lib32-opencl-rusticl-mesa"
fi
"""

[amd]
desc = "Mesa open source driver for AMD"
Expand All @@ -137,6 +147,11 @@ vendor_ids = "1002"
device_ids = "*"
priority = 4
packages = 'mesa lib32-mesa vulkan-radeon lib32-vulkan-radeon libva-mesa-driver lib32-libva-mesa-driver mesa-vdpau lib32-mesa-vdpau opencl-clover-mesa lib32-opencl-clover-mesa'
conditional_packages = """
if ! lspci -d "*:*:030x" | grep -q NVIDIA; then
echo "opencl-rusticl-mesa lib32-opencl-rusticl-mesa"
fi
"""

[fallback]
desc = 'Fallback profile'
Expand Down
Loading