mirror of
https://github.com/torvalds/linux.git
synced 2026-05-22 14:12:07 +02:00
drm/gma500: fbdev: Set framebuffer size to GEM object size
Framebuffer emulation sets the size of the available memory to the value that has been requested. As the allocated GEM buffer object acts as full framebuffer memory, set the size to the value of the actually allocated buffer. Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Acked-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com> Link: https://patch.msgid.link/20260206133458.226467-3-tzimmermann@suse.de
This commit is contained in:
parent
e0afbfe321
commit
bbc1d21054
|
|
@ -171,12 +171,12 @@ int psb_fbdev_driver_fbdev_probe(struct drm_fb_helper *fb_helper,
|
|||
|
||||
/* Accessed stolen memory directly */
|
||||
info->screen_base = dev_priv->vram_addr + backing->offset;
|
||||
info->screen_size = size;
|
||||
info->screen_size = obj->size;
|
||||
|
||||
drm_fb_helper_fill_info(info, fb_helper, sizes);
|
||||
|
||||
info->fix.smem_start = dev_priv->stolen_base + backing->offset;
|
||||
info->fix.smem_len = size;
|
||||
info->fix.smem_len = obj->size;
|
||||
info->fix.ywrapstep = 0;
|
||||
info->fix.ypanstep = 0;
|
||||
info->fix.mmio_start = pci_resource_start(pdev, 0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user