Skip to content

Commit

Permalink
profiles/graphic_drivers: Add rusticl drivers as conditional_packages
Browse files Browse the repository at this point in the history
  • Loading branch information
ventureoo committed Jun 27, 2024
1 parent 4dbd389 commit a2ee2dc
Showing 1 changed file with 15 additions and 0 deletions.
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 "*:*:0302" | 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 "*:*:0302" | 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 "*:*:0302" | grep -q NVIDIA; then
echo "opencl-rusticl-mesa lib32-opencl-rusticl-mesa"
fi
"""

[fallback]
desc = 'Fallback profile'
Expand Down

0 comments on commit a2ee2dc

Please sign in to comment.