mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-11-07 07:26:13 -05:00
gnu: mesa: Fix hardware video decoding.
* gnu/packages/gl.scm (mesa): Fix hardware video decoding. [arguments]: Add -Dvideo-codecs to the #:configure-flags [native-search-paths]: Add VDPAU_DRIVER_PATH so libvdpau can find the drivers. Signed-off-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
This commit is contained in:
parent
61a3264424
commit
02995444db
1 changed files with 9 additions and 0 deletions
|
@ -360,6 +360,10 @@ (define-public mesa
|
|||
;; Enable the Vulkan overlay layer on all architectures.
|
||||
"-Dvulkan-layers=device-select,overlay"
|
||||
|
||||
;; Enable the codecs that were built by default as part of the
|
||||
;; 21.3.x releases to avoid functionality regressions.
|
||||
"-Dvideo-codecs=vc1dec,h264dec,h264enc,h265dec,h265enc"
|
||||
|
||||
;; Also enable the tests.
|
||||
"-Dbuild-tests=true"
|
||||
|
||||
|
@ -511,6 +515,11 @@ (define-public mesa
|
|||
(string-append "\"" out "/lib/lib" layer-name ".so\"")))))))
|
||||
(for-each fix-layer-path '("VkLayer_MESA_device_select"
|
||||
"VkLayer_MESA_overlay"))))))))
|
||||
(native-search-paths
|
||||
(list (search-path-specification
|
||||
;; Ensure the Mesa VDPAU drivers can be found.
|
||||
(variable "VDPAU_DRIVER_PATH")
|
||||
(files '("lib/vdpau")))))
|
||||
(home-page "https://mesa3d.org/")
|
||||
(synopsis "OpenGL and Vulkan implementations")
|
||||
(description "Mesa is a free implementation of the OpenGL and Vulkan
|
||||
|
|
Loading…
Reference in a new issue