Skip to content

Commit 4cbae37

Browse files
ldesrochestdz
authored andcommitted
drm/gem-shmem: revert the 8-byte alignment constraint
Using drm_mode_size_dumb() to compute the size of dumb buffers introduced an 8-byte alignment constraint on the pitch that wasn’t present before. Let’s remove this constraint, which isn’t necessarily required and may cause buffers to be allocated larger than needed. Signed-off-by: Ludovic Desroches <ludovic.desroches@microchip.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Fixes: 4977dce ("drm/gem-shmem: Compute dumb-buffer sizes with drm_mode_size_dumb()") Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patch.msgid.link/20251126-lcd_pitch_alignment-v1-2-991610a1e369@microchip.com
1 parent 56715b4 commit 4cbae37

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/drm_gem_shmem_helper.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -559,7 +559,7 @@ int drm_gem_shmem_dumb_create(struct drm_file *file, struct drm_device *dev,
559559
{
560560
int ret;
561561

562-
ret = drm_mode_size_dumb(dev, args, SZ_8, 0);
562+
ret = drm_mode_size_dumb(dev, args, 0, 0);
563563
if (ret)
564564
return ret;
565565

0 commit comments

Comments
 (0)