Vulkan ICD profile switching
There is an issue with the Vulkan ICD profiles (not caused by supergfx or asusctl). Which leads to broken VK 3D support as it tries to load the nvidia profile on integrated or vfio mode. This should fix that behaviour by checking the mode and moving the corresponding file (if found).
This addition does the following:
- if on integrated or VFIO mode, it will move
/usr/share/vulkan/icd.d/nvidia_icd.json
to/usr/share/vulkan/icd.d/nvidia_icd.json_inactive
- otherwise trying to revoke the above (inverted src/dst)
Maybe this icd-profile thingy should be configurable somehow, but this is just a first shot.
cheers.