Re: [PATCH v2 4/4] drm: require each CRTC to have a unique primary plane

2020-12-11 Thread Jani Nikula
On Fri, 11 Dec 2020, Simon Ser wrote: > User-space expects to be able to pick a primary plane for each CRTC > exposed by the driver. Make sure this assumption holds in > drm_mode_config_validate. > > Use the legacy drm_crtc.primary field to check this, because it's > simpler and we require drivers

[PATCH v2 4/4] drm: require each CRTC to have a unique primary plane

2020-12-11 Thread Simon Ser
User-space expects to be able to pick a primary plane for each CRTC exposed by the driver. Make sure this assumption holds in drm_mode_config_validate. Use the legacy drm_crtc.primary field to check this, because it's simpler and we require drivers to set it anyways. Accumulate a set of primary pl