vo_drm: change CLI options + refactors

- Change connector selection to accept human readable names (such as
  eDP-1, HDMI-A-2) rather than arbitrary numbers.
- Change GPU selection to accept GPU number rather than device paths.
- Merge connector and GPU selection into one --drm-connector.
- Add support for --drm-connector=help.
- Add support for --drm-* in EGL backend.
- Refactor KMS; reduce state sharing across drm_common.
This commit is contained in:
rr-
2016-10-04 22:07:19 +02:00
committed by wm4
parent e9c43258b8
commit 403f489f6c
7 changed files with 298 additions and 174 deletions

View File

@@ -495,13 +495,13 @@ Available video output drivers are:
The following global options are supported by this video output:
``--drm-connector=<number>``
Select the connector to use (usually this is a monitor.) If set to -1,
mpv renders the output on the first available connector. (default: -1)
``--drm-devpath=<filename>``
Path to graphic card device.
(default: /dev/dri/card0)
``--drm-connector=[<gpu_number>.]<name>``
Select the connector to use (usually this is a monitor.) If ``<name>``
is empty or ``auto``, mpv renders the output on the first available
connector. Use ``--drm-connector=help`` to get list of available
connectors. When using multiple graphic cards, use the ``<gpu_number>``
argument to disambiguate.
(default: empty)
``--drm-mode=<number>``
Mode ID to use (resolution, bit depth and frame rate).