[PATCH] drm/fourcc: add LINEAR modifiers with an exact pitch alignment

Philipp Zabel p.zabel at pengutronix.de
Tue Jan 21 09:02:41 UTC 2025


Hi,

On Mo, 2025-01-20 at 08:58 +0100, Thomas Zimmermann wrote:
> Hi
> 
> 
> Am 18.01.25 um 03:37 schrieb Marek Olšák:
> [...]
> > 
> > 3) Implementing DRM_FORMAT_MOD_LINEAR as having 256B pitch and offset 
> > alignment. This is what we do today. Even if Intel and some AMD chips 
> > can do 64B or 128B alignment, they overalign to 256B. With so many 
> > AMD+NV laptops out there, NV is probably next, unless they already do 
> > this in the closed source driver.
> 
> The dumb-buffer series currently being discussed on dri-devel also 
> touches handling of scanline pitches. THe actual value varies with each 
> driver.  Should dumb buffers use a default pitch alignment of 256 on al 
> hardware?

Not all, mxsfb for example doesn't support pitch alignment.

regards
Philipp


More information about the dri-devel mailing list