Skip to content

Commit

Permalink
Ensure that only one Vulkan ICD manifest is present.
Browse files Browse the repository at this point in the history
Install a single nvidia_icd.json file, regardless the target
architecture, to prevent having two ICD manifests present
when both x64 and i686 driver libraries are installed.
Having multiple Vulkan ICD manifest installed tricks the Vulkan
loader into thinking that there are two adapters installed.

Fixes #95
  • Loading branch information
jp7677 committed Feb 14, 2020
1 parent 1e1577e commit 9602920
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nvidia-driver.spec
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

Name: nvidia-driver
Version: 440.59
Release: 1%{?dist}
Release: 2%{?dist}
Summary: NVIDIA's proprietary display driver for NVIDIA graphic cards
Epoch: 3
License: NVIDIA License
Expand Down Expand Up @@ -278,7 +278,7 @@ install -p -m 0644 nvidia-application-profiles-%{version}-rc \

%if 0%{?fedora} || 0%{?rhel} >= 7
# Vulkan loader
install -p -m 0644 nvidia_icd.json %{buildroot}%{_datadir}/vulkan/icd.d/nvidia_icd.%{_target_cpu}.json
install -p -m 0644 nvidia_icd.json %{buildroot}%{_datadir}/vulkan/icd.d/
%endif

%ifarch x86_64
Expand Down Expand Up @@ -451,6 +451,9 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/com.nvidia.dri
%{_libdir}/libnvidia-ml.so.%{version}

%changelog
* Tue Feb 14 2020 Jens Peters <[email protected]> - 3:440.59-2
- Ensure that only one Vulkan ICD manifest is present.

* Tue Feb 04 2020 Simone Caronni <[email protected]> - 3:440.59-1
- Update to 440.59.

Expand Down

0 comments on commit 9602920

Please sign in to comment.