FS#58582 - [mpv] Add Vulkan support

Attached to Project: Community Packages
Opened by grmat (grmat) - Sunday, 13 May 2018, 17:08 GMT
Last edited by Christian Hesse (eworm) - Thursday, 15 November 2018, 10:23 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Christian Hesse (eworm)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:

The built package lacks Vulkan support, which was introduced with 0.28.

Additional info:
* package version(s): 0.28.2-1

"vulkan-icd-loader" is needed for libvulkan and the autodetection during configuration and "vulkan-headers" for building, so I suggest adding those two as makedepends and maybe "vulkan-driver" to optdepends.


Steps to reproduce:
run mpv with --gpu-api=vulkan (or equivalent entry in config file):
Error parsing option gpu-api (option parameter could not be parsed)
Setting commandline option --gpu-api=vulkan failed.

re-build with vulkan-icd-loader and vulkan-headers would work, however still depends on an external glsl-spir-v compiler like shaderc.
This task depends upon

Closed by  Christian Hesse (eworm)
Thursday, 15 November 2018, 10:23 GMT
Reason for closing:  Fixed
Additional comments about closing:  mpv-1:0.29.1-4
Comment by Bin Jin (bjin) - Tuesday, 16 October 2018, 17:29 GMT
nvidia-410.57 removed support of "VK_NV_glsl_shader" extension[1], which makes shaderc the only working spirv-compiler for vulkan support in mpv.

recently "shaderc" gets a stable release[2], but git master version of glslang is currently required. (See [3]).


[1]: https://devtalk.nvidia.com/default/topic/1041820/unix-graphics-announcements-and-news/linux-solaris-and-freebsd-driver-410-57/
[2]: https://github.com/google/shaderc/releases/tag/v2018.0
[3]: https://aur.archlinux.org/packages/shaderc
Comment by Daniel M. Capella (polyzen) - Sunday, 21 October 2018, 06:38 GMT Comment by Dietrich Hallentforden (aufkrawall) - Thursday, 15 November 2018, 09:22 GMT
shaderc is now in repository, so a recompile should add Vulkan support. Could we get one, please? :)
Comment by Christian Hesse (eworm) - Thursday, 15 November 2018, 09:28 GMT
Does an optional dependency suffice or do we need a hard dependency?
Comment by Dietrich Hallentforden (aufkrawall) - Thursday, 15 November 2018, 10:14 GMT
Hard dependency, as it is required during compile and won't start with it missing.

Loading...