Re: [RFC] drm/fourcc: Add a modifier for contiguous memory

2022-11-29 Thread Hsia-Jun Li
On 11/29/22 18:42, Daniel Stone wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Hi Randy, On Tue, 29 Nov 2022 at 10:11, Hsia-Jun Li wrote: Currently, we assume all the pixel formats are

Re: [RFC] drm/fourcc: Add a modifier for contiguous memory

2022-11-29 Thread Pekka Paalanen
On Tue, 29 Nov 2022 18:10:30 +0800 Hsia-Jun Li wrote: > From: "Hsia-Jun(Randy) Li" > > Hello All > > Currently, we assume all the pixel formats are multiple planes, Hi, that's not true for any definition of "multiple planes" that I know of. For example, DRM_FORMAT_XRGB is a

Re: [RFC] drm/fourcc: Add a modifier for contiguous memory

2022-11-29 Thread Hsia-Jun Li
On 11/29/22 18:18, Simon Ser wrote: CAUTION: Email originated externally, do not click links or open attachments unless you recognize the sender and know the content is safe. Format modifiers are for the buffer layout only, not for the allocation parameters, placement, etc. See the doc

Re: [RFC] drm/fourcc: Add a modifier for contiguous memory

2022-11-29 Thread Daniel Stone
Hi Randy, On Tue, 29 Nov 2022 at 10:11, Hsia-Jun Li wrote: > Currently, we assume all the pixel formats are multiple planes, devices > could support each component has its own memory plane. > But that may not apply for any device in the world. We could have a > device without IOMMU then this is

Re: [RFC] drm/fourcc: Add a modifier for contiguous memory

2022-11-29 Thread Simon Ser
Format modifiers are for the buffer layout only, not for the allocation parameters, placement, etc. See the doc comment at the top of drm_fourcc.h.

[RFC] drm/fourcc: Add a modifier for contiguous memory

2022-11-29 Thread Hsia-Jun Li
From: "Hsia-Jun(Randy) Li" Hello All Currently, we assume all the pixel formats are multiple planes, devices could support each component has its own memory plane. But that may not apply for any device in the world. We could have a device without IOMMU then this is not impossible. Besides,