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, only for x64,
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 two adapters are
installed.

Fixes #95
  • Loading branch information
jp7677 committed Feb 14, 2020
1 parent 1e1577e commit d87f724
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 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 @@ -276,16 +276,18 @@ install -p -m 0644 nvidia-application-profiles-%{version}-rc \

%endif

%ifarch x86_64

%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
%if 0%{?fedora} || 0%{?rhel} >= 8
# Vulkan layer
install -p -m 0644 nvidia_layers.json %{buildroot}%{_datadir}/vulkan/implicit_layer.d/
%endif

%endif

# EGL loader
Expand Down Expand Up @@ -451,6 +453,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 d87f724

Please sign in to comment.