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

2025-01-12 Thread Thomas Zimmermann
Hi Am 13.01.25 um 04:53 schrieb Andy Yan: [...] Thanks for taking a look. That NV-related code at [0] is a 'somewhat non-idiomatic use' of the UAPI. The dumb-buffer interface really just supports a single plane. The fix would be a new ioctl that takes a DRM 4cc constant and returns a buffer han

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

2025-01-12 Thread Andy Yan
Hi Thomas, At 2025-01-09 22:56:56, "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's currently quite a b

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

2025-01-10 Thread Thomas Zimmermann
Hi Am 10.01.25 um 02:49 schrieb Andy Yan: Hi Thomas, At 2025-01-09 22:56:56, "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