Re:[PATCH v5 02/25] drm/dumb-buffers: Provide helper to set pitch and size

2025-06-18 Thread Andy Yan
Hi, At 2025-06-13 17:00:21, "Thomas Zimmermann" wrote: >Add drm_modes_size_dumb(), a helper to calculate the dumb-buffer >scanline pitch and allocation size. Implementations of struct >drm_driver.dumb_create can call the new helper for their size >computations. > >There is currently quite a bit

[PATCH v5 02/25] drm/dumb-buffers: Provide helper to set pitch and size

2025-06-13 Thread Thomas Zimmermann
Add drm_modes_size_dumb(), a helper to calculate the dumb-buffer scanline pitch and allocation size. Implementations of struct drm_driver.dumb_create can call the new helper for their size computations. There is currently quite a bit of code duplication among DRM's memory managers. Each calculates