[PATCH 00/12] drm/format-helper: Move to struct iosys_map
Sam Ravnborg
sam at ravnborg.org
Fri Aug 5 17:59:31 UTC 2022
Hi Thomas,
On Wed, Jul 27, 2022 at 01:33:00PM +0200, Thomas Zimmermann wrote:
> Change format-conversion helpers to use struct iosys_map for source
> and destination buffers. Update all users. Also prepare interface for
> multi-plane color formats.
>
> The format-conversion helpers mostly used to convert to I/O memory
> or system memory. To actual memory type depended on the usecase. We
> now have drivers upcomming that do the conversion entirely in system
> memory. It's a good opportunity to stream-line the interface of the
> conversion helpers to use struct iosys_map. Source and destination
> buffers can now be either in system or in I/O memory.
Thanks for looking into this - I like how we hide the memory details in
the helpers (system vs io).
And unifying the system and io variants makes the API simpler - also
good.
> Note that the
> implementation still only supports source buffers in system memory.
Yeah, I noted this in my feedback but realized only now that it is
written here.
I left a few comments (details only) in some of the patches, most are
reviewed without comments.
There is a few general things - mostly bikeshedding about naming and
such. As usual ignore what you think is irrelevant.
Sam
More information about the dri-devel
mailing list