[PATCH v14 05/41] compositor-drm: Use drm_plane for cursor plane
Daniel Stone
daniel at fooishbar.org
Tue Jan 16 15:39:00 UTC 2018
Hi,
On 16 January 2018 at 08:25, Pekka Paalanen <ppaalanen at gmail.com> wrote:
> On Wed, 20 Dec 2017 12:26:22 +0000
> Daniel Stone <daniels at collabora.com> wrote:
>> + switch (type) {
>> + case WDRM_PLANE_TYPE_CURSOR:
>> + format = GBM_FORMAT_ARGB8888;
>> + break;
>> + case WDRM_PLANE_TYPE_PRIMARY:
>> + format = output->gbm_format;
>
> It seems output->gbm_format is not yet set at this time, so it cannot
> be used here. However, this is fixed in the next patch, and before that
> this code path is not reached, so technically it's ok.
Very right. I think the easiest thing to do is to just delete the
PRIMARY case here - always falling through to an assert - and only
handle it in the next patch.
Cheers,
Daniel
More information about the wayland-devel
mailing list