diff options
author | Anton Kindestam <antonki@kth.se> | 2020-02-02 16:27:54 +0100 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2020-02-02 18:01:55 +0200 |
commit | 19e51551472c5810a3362a8f6f8be12dca28cf31 (patch) | |
tree | acc0c142b00da5d05edbbc04a401cb2f630c7940 /osdep/path.h | |
parent | f304a799350ced0f0a8882843e17bcd5fcea2e25 (diff) | |
download | mpv-19e51551472c5810a3362a8f6f8be12dca28cf31.tar.bz2 mpv-19e51551472c5810a3362a8f6f8be12dca28cf31.tar.xz |
drm_atomic: do not set immutable properties
On some platforms the ZPOS property might exist, but be immutable.
This is at least the case on Intel Sandy Bridge since Linux kernel
5.5.0. Trying to set an immutable property will cause.
drmModeAtomicCommit to fail with -EINVAL.
On other platforms we might want to set ZPOS to tweak the layering of
planes.
To reconcile these two, simply have drm_object_set_property check if a
property is immutable before attempting to add it to the atomic
commit, instead returning an error code (which is, as previously,
ignored in the case of ZPOS as we don't strictly need it)
Diffstat (limited to 'osdep/path.h')
0 files changed, 0 insertions, 0 deletions