Skip to content

Commit

Permalink
prime-select.sh: offload-set(): no need to check for xf86-video-amdgp…
Browse files Browse the repository at this point in the history
…u package

amdgpu/nvidia is not implemented for offload on AMD, only modeset/nvidia;
you could run "prime-select offload-set intel" on AMD/NVIDIA, but this is
rather confusing; so just use "prime-select offload" there for
having modeset/nvidia
  • Loading branch information
sndirsch committed Jul 31, 2022
1 parent 209f12d commit d41f334
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions prime-select.sh
Original file line number Diff line number Diff line change
Expand Up @@ -593,12 +593,19 @@ case $type in
fi
fi

if [ "$2" = "amd" ];then
if ! rpm -q xf86-video-amdgpu > /dev/null; then
echo "package xf86-video-amdgpu is not installed";
exit 1
fi
fi
###
### no need to check for this; amdgpu/nvidia is not implemented
### for offload on AMD, only modeset/nvidia; you could run
### "prime-select offload-set intel" on AMD/NVIDIA, but this is
### rather confusing; so just use "prime-select offload" there for
### having modeset/nvidia
###
#if [ "$2" = "amd" ];then
# if ! rpm -q xf86-video-amdgpu > /dev/null; then
# echo "package xf86-video-amdgpu is not installed";
# exit 1
# fi
#fi

if ! nv_offload_capable; then
echo "ERROR: offloading needs nvidia drivers >= 435.xx"
Expand Down

0 comments on commit d41f334

Please sign in to comment.