File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change 1919from glob import glob
2020import shutil
2121import subprocess
22+ import filecmp
2223
2324
2425class VulkanUtils :
@@ -45,7 +46,17 @@ def __get_vk_icd_loaders(self):
4546
4647 for file in _files :
4748 if "nvidia" in file .lower ():
48- loaders ["nvidia" ] += [file ]
49+ # Workaround for nvidia flatpak bug: https://github.com/flathub/org.freedesktop.Platform.GL.nvidia/issues/112
50+ should_skip = False
51+ for nvidia_loader in loaders ["nvidia" ]:
52+ try :
53+ if filecmp .cmp (nvidia_loader , file ):
54+ should_skip = True
55+ continue
56+ except :
57+ pass
58+ if not should_skip :
59+ loaders ["nvidia" ] += [file ]
4960 elif "amd" in file .lower () or "radeon" in file .lower ():
5061 loaders ["amd" ] += [file ]
5162 elif "intel" in file .lower ():
You can’t perform that action at this time.
0 commit comments