mpv/video/out/gpu
wm4 7cfae5adce vo_gpu: semi-fix --gpu-context/--gpu-api options and help output
This was confusing at best. Change it to output the actual choices.
(Seems like in the end it's always me who has to clean up other people's
bullshit.)

Context names were not unique - but they should be, so fix it. The whole
point of the original --opengl-backend option was to side-step the
tricky auto-detection, so you know exactly what you get. The goal of
this commit is to make --gpu-context work the same way. Fix the
non-unique names by appending "vk" to the names.

Keep in mind that this was not suitable for slecting the "UI" backend
anyway, since "x11" would force GLX, whereas people on not-NVIDIA
actually want "x11egl". Users trying to use --gpu-context=x11 to force
the X11 backend would always end up with GLX, which would at least break
VAAPI hardware decoding for them. Basically the idea that this option
could select the "UI" type is completely broken - it selects an
implementation, which implies a UI. Selecting the UI type This would
require a separate mechanism. (Although in theory this separate
mechanism could be part of the --gpu-context option - in any case,
someone would have to implement it.)

To achieve help output that can actually be understood, just duplicate
the code. Most of that code is duplicated anyway, and trying to share
just the list code with the result of making the output unreadable
doesn't make too much sense. If we wanted to save code/effort, we could
just remove the help output altogether.

--gpu-api has non-unique entries, and it would be nice to group them
(e.g. list all OpenGL capable contexts with "opengl"), but C makes this
simple idea too much of a pain, so don't do it.

Also remove a stray tab from the android entry on the manpage.
2017-10-16 10:57:51 +02:00
..
context.c vo_gpu: semi-fix --gpu-context/--gpu-api options and help output 2017-10-16 10:57:51 +02:00
context.h vo_gpu: vulkan: generalize SPIR-V compiler 2017-09-26 17:25:35 +02:00
hwdec.c
hwdec.h
lcms.c
lcms.h
osd.c vo_gpu: make the vertex attribs dynamic 2017-09-28 01:54:38 +02:00
osd.h vo_gpu: simplify structs / names 2017-09-22 16:58:55 +02:00
ra.c
ra.h vo_gpu: vulkan: add support for push constants 2017-09-26 17:25:35 +02:00
shader_cache.c vo_gpu: force layout std430 for PCs 2017-09-29 00:41:50 +02:00
shader_cache.h vo_gpu: make the vertex attribs dynamic 2017-09-28 01:54:38 +02:00
spirv.c vo_gpu: fix memleak in spirv.c 2017-09-26 17:32:36 +02:00
spirv.h vo_gpu: vulkan: generalize SPIR-V compiler 2017-09-26 17:25:35 +02:00
spirv_shaderc.c vo_gpu: shaderc: include debug info when --gpu-debug is set 2017-10-11 12:22:21 +11:00
user_shaders.c
user_shaders.h vo_gpu: make the vertex attribs dynamic 2017-09-28 01:54:38 +02:00
utils.c vo_gpu: simplify structs / names 2017-09-22 16:58:55 +02:00
utils.h vo_gpu: simplify structs / names 2017-09-22 16:58:55 +02:00
video.c vo_gpu: enable 3DLUTs in dumb mode 2017-09-30 19:03:34 +02:00
video.h vo_gpu: make the vertex attribs dynamic 2017-09-28 01:54:38 +02:00
video_shaders.c vo_gpu: attempt to avoid UBOs for dynamic variables 2017-09-26 17:25:35 +02:00
video_shaders.h