Re: [PATCH v4] drm/omap: plane zpos/zorder management improvements

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 08/01/18 10:20, Peter Ujfalusi wrote:
> Hi Laurent,
> 
> On 2018-01-05 16:04, Laurent Pinchart wrote:
>> Hi Peter,
>>
>> Thank you for the patch and sorry for the late review.
>>
>> On Friday, 5 January 2018 13:30:37 EET Peter Ujfalusi wrote:
>>> Use the plane index as default zpos for all planes. Even if the
>>> application is not setting zpos/zorder explicitly we will have unique zpos
>>> for each plane.
>>>
>>> Enforce that all planes must have unique zpos on the given crtc.
>>
>> Could you explain the rationale for that in the commit message, what's wrong 
>> with duplicate zpos values ?
> 
> Planes with identical zpos is only 'valid' _if_ they are not
> overlapping, if they do overlap then it is - imho - not a valid
> configuration anyway (which one should be on top?).

For DSS it's clear. It is an invalid HW configuration to have multiple
planes with the same zpos in the same crtc. I believe the result is
undefined HW behavior.

So we either return an error, or the kernel normalizes zpos'es.
Normalizing means the kernel is guessing what the end result should be,
so I like error better.

 Tomi

-- 
Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki.
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/dri-devel




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux