[RFC 1/7] drm/gem: Add drm_gem_dumb_map_offset()

Eric Anholt eric at anholt.net
Wed Jul 19 21:01:40 UTC 2017


Noralf Trønnes <noralf at tronnes.org> writes:

> Add a common drm_driver.dumb_map_offset function for GEM backed drivers.
>
> Signed-off-by: Noralf Trønnes <noralf at tronnes.org>

Instead of just introducing the new code, could we replace CMA's code
with calls to this at the same time?

I suspect that if we had CMA subclass from drm_fb_gem (or we move the
gem objects to the base class), we could remove a lot of its code that
you're copying in patch 2, as well.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20170719/e1fadcf5/attachment.sig>


More information about the dri-devel mailing list