- /* Enable universal planes so that ALL planes, even primary and cursor
- * planes can be assigned from lease configurations. */
- if (drmSetClientCap(lm->drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES, 1)) {
+ /* When -u option set at args. Enable universal planes so that ALL
+ planes, even primary and cursor planes can be assigned from lease
+ configurations. */
+ if (universal_plane == true) {
+ DEBUG_LOG("Enable universal plean mode.\n");
+ value = 1;
+ }
+
+ if (drmSetClientCap(lm->drm_fd, DRM_CLIENT_CAP_UNIVERSAL_PLANES,
+ value)) {