Skip to content

Commit fad54df

Browse files
authoredMar 22, 2025
virglrenderer: enable venus and DRM native context support (#382283)
2 parents 4db9e51 + d082fd7 commit fad54df

File tree

1 file changed

+16
-3
lines changed

1 file changed

+16
-3
lines changed
 

‎pkgs/by-name/vi/virglrenderer/package.nix

+16-3
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@
1111
libX11,
1212
libdrm,
1313
libgbm,
14+
nativeContextSupport ? stdenv.hostPlatform.isLinux,
1415
vaapiSupport ? !stdenv.hostPlatform.isDarwin,
1516
libva,
17+
vulkanSupport ? stdenv.hostPlatform.isLinux,
18+
vulkan-headers,
19+
vulkan-loader,
1620
gitUpdater,
1721
}:
1822

@@ -32,6 +36,10 @@ stdenv.mkDerivation rec {
3236
libepoxy
3337
]
3438
++ lib.optionals vaapiSupport [ libva ]
39+
++ lib.optionals vulkanSupport [
40+
vulkan-headers
41+
vulkan-loader
42+
]
3543
++ lib.optionals stdenv.hostPlatform.isLinux [
3644
libGLU
3745
libX11
@@ -46,9 +54,14 @@ stdenv.mkDerivation rec {
4654
python3
4755
];
4856

49-
mesonFlags = [
50-
(lib.mesonBool "video" vaapiSupport)
51-
];
57+
mesonFlags =
58+
[
59+
(lib.mesonBool "video" vaapiSupport)
60+
(lib.mesonBool "venus" vulkanSupport)
61+
]
62+
++ lib.optionals nativeContextSupport [
63+
(lib.mesonOption "drm-renderers" "amdgpu-experimental,msm")
64+
];
5265

5366
passthru = {
5467
updateScript = gitUpdater {

0 commit comments

Comments
 (0)
Failed to load comments.