summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorLouai Al-Khanji <louai.al-khanji@theqtcompany.com>2014-10-22 13:17:56 +0300
committerLouai Al-Khanji <louai.al-khanji@theqtcompany.com>2014-10-24 05:46:58 +0200
commit55be75c9696d38951afcf16ee8198bb86a7f2f38 (patch)
tree6ed199a9ffe92d08f9ac3509b3878e210d17b84d /tests
parent70b96c525d6c9efcdd639ab050744735619b3420 (diff)
eglfs: Add better configuration support to KMS hooks
This patch improves the configurability of the KMS hooks. Support is added for a json config file. The file can be used to specify the device to use, whether pbuffers are supported, whether HW cursors should be used and the mode to use per output. The path to the configuration file is specified through the QT_QPA_EGLFS_KMS_CONFIG environment variable. The output initialization code is significantly changed and now closely matches Weston's drm compositor setup code. We now track which crtc's and which connectors are already in use for more robust output setup. Importantly, it is now possible to turn off undesired outputs as well as select the mode to use on outputs. The configuration syntax is similar to Weston's config file, and the following settings are supported per output: off, preferred, current, WIDTHxHEIGHT, modeline Unless the output mode configuration matches "off", "preferred" or "current" exactly, it is first attempted to parse the mode as WIDTHxHEIGHT, after which it is attempted to parse the mode as a modeline. The modeline parsing code is very closely modeled after the parsing code in Weston. If an output mode cannot be parsed the default fallback is preferred mode. The defaults for all settings are as follows: device: unless specified, the first device found through QDeviceDiscovery hwcursor: true pbuffers: false outputs: empty An example configuration file might look as follows: { "device": "/dev/dri/card1", "hwcursor": false, "pbuffers": true, "outputs": [ { "name": "VGA1", "mode": "off" }, { "name": "HDMI1", "mode": "1024x768" } ] } Change-Id: Ibe1e446c44a014ae8c7cbd8173a060ca862c2bc8 Reviewed-by: Risto Avila <risto.avila@theqtcompany.com> Reviewed-by: Laszlo Agocs <laszlo.agocs@digia.com>
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions