SIGN IN SIGN UP

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)
A
Anton Kindestam committed
19e51551472c5810a3362a8f6f8be12dca28cf31
Parent: f304a79
Committed by Jan Ekström <jeebjp@gmail.com> on 2/2/2020, 4:01:55 PM