Skip to content

Commit 04228ae

Browse files
Merge branch 'vulkan-support' into 'master'
Vulkan support See merge request nvidia/container-toolkit/libnvidia-container!1
2 parents dded84d + a4b883d commit 04228ae

File tree

6 files changed

+35
-23
lines changed

6 files changed

+35
-23
lines changed

pkg/deb/changelog

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
libnvidia-container (1.0.2-1) UNRELEASED; urgency=medium
1+
libnvidia-container (1.0.3-1) UNRELEASED; urgency=medium
2+
3+
* b9545d7 Add support for Vulkan
4+
5+
-- NVIDIA CORPORATION <[email protected]> Thu, Jul 18 2019 13:34:30 -0700
26

37
* 4045013 Adds support for libnvidia-opticalflow
48

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
libnvidia-container.so.1 libnvidia-container1 #MINVER#
2-
NVC_1.0@NVC_1.0 1.0.2
3-
nvc_config_free@NVC_1.0 1.0.2
4-
nvc_config_new@NVC_1.0 1.0.2
5-
nvc_container_config_free@NVC_1.0 1.0.2
6-
nvc_container_config_new@NVC_1.0 1.0.2
7-
nvc_container_free@NVC_1.0 1.0.2
8-
nvc_container_new@NVC_1.0 1.0.2
9-
nvc_context_free@NVC_1.0 1.0.2
10-
nvc_context_new@NVC_1.0 1.0.2
11-
nvc_device_info_free@NVC_1.0 1.0.2
12-
nvc_device_info_new@NVC_1.0 1.0.2
13-
nvc_device_mount@NVC_1.0 1.0.2
14-
nvc_driver_info_free@NVC_1.0 1.0.2
15-
nvc_driver_info_new@NVC_1.0 1.0.2
16-
nvc_driver_mount@NVC_1.0 1.0.2
17-
nvc_error@NVC_1.0 1.0.2
18-
nvc_init@NVC_1.0 1.0.2
19-
nvc_ldcache_update@NVC_1.0 1.0.2
20-
nvc_shutdown@NVC_1.0 1.0.2
21-
nvc_version@NVC_1.0 1.0.2
2+
NVC_1.0@NVC_1.0 1.0.3
3+
nvc_config_free@NVC_1.0 1.0.3
4+
nvc_config_new@NVC_1.0 1.0.3
5+
nvc_container_config_free@NVC_1.0 1.0.3
6+
nvc_container_config_new@NVC_1.0 1.0.3
7+
nvc_container_free@NVC_1.0 1.0.3
8+
nvc_container_new@NVC_1.0 1.0.3
9+
nvc_context_free@NVC_1.0 1.0.3
10+
nvc_context_new@NVC_1.0 1.0.3
11+
nvc_device_info_free@NVC_1.0 1.0.3
12+
nvc_device_info_new@NVC_1.0 1.0.3
13+
nvc_device_mount@NVC_1.0 1.0.3
14+
nvc_driver_info_free@NVC_1.0 1.0.3
15+
nvc_driver_info_new@NVC_1.0 1.0.3
16+
nvc_driver_mount@NVC_1.0 1.0.3
17+
nvc_error@NVC_1.0 1.0.3
18+
nvc_init@NVC_1.0 1.0.3
19+
nvc_ldcache_update@NVC_1.0 1.0.3
20+
nvc_shutdown@NVC_1.0 1.0.3
21+
nvc_version@NVC_1.0 1.0.3

pkg/rpm/SPECS/libnvidia-container.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ This package contains command-line tools that facilitate using the library.
8585
%{_bindir}/*
8686

8787
%changelog
88+
* Thu Jul 18 2019 NVIDIA CORPORATION <[email protected]> 1.0.3-1
89+
- b9545d7 Add support for Vulkan
90+
8891
* Tue Feb 05 2019 NVIDIA CORPORATION <[email protected]> 1.0.2-1
8992
- 4045013 Adds support for libnvidia-opticalflow
9093

src/nvc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ extern "C" {
1515

1616
#define NVC_MAJOR 1
1717
#define NVC_MINOR 0
18-
#define NVC_PATCH 2
19-
#define NVC_VERSION "1.0.2"
18+
#define NVC_PATCH 3
19+
#define NVC_VERSION "1.0.3"
2020

2121
#define NVC_ARG_MAX 256
2222

src/nvc_info.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ static const char * const graphics_libs_glvnd[] = {
102102
"libEGL_nvidia.so", /* EGL ICD */
103103
"libGLESv2_nvidia.so", /* OpenGL ES v2 ICD */
104104
"libGLESv1_CM_nvidia.so", /* OpenGL ES v1 common profile ICD */
105+
"libnvidia-glvkspirv.so", /* SPIR-V Lib for Vulkan */
105106
};
106107

107108
static const char * const graphics_libs_compat[] = {

src/nvc_mount.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,10 @@ symlink_libraries(struct error *err, const struct nvc_container *cnt, const char
404404
/* XXX GLVND requires this symlink for indirect GLX support. */
405405
if (symlink_library(err, paths[i], lib, "libGLX_indirect.so.0", cnt->uid, cnt->gid) < 0)
406406
return (-1);
407+
} else if (str_has_prefix(lib, "libnvidia-opticalflow.so")) {
408+
/* XXX Fix missing symlink for libnvidia-opticalflow.so. */
409+
if (symlink_library(err, paths[i], "libnvidia-opticalflow.so.1", "libnvidia-opticalflow.so", cnt->uid, cnt->gid) < 0)
410+
return (-1);
407411
}
408412
}
409413
return (0);

0 commit comments

Comments
 (0)