drm/gem: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 1 Jul 2025 09:07:10 +0000 (12:07 +0300)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 16 Jul 2025 17:05:58 +0000 (20:05 +0300)
commit04a5889cf75aa5b59bd1e13c33eccaf49f3f9d81
tree45daef090631bdbe0a77ff7aaa74a9c8f144930a
parente3c5074b1fc2b49c456d8dc567d59b800b45e267
drm/gem: Pass along the format info from .fb_create() to drm_helper_mode_fill_fb_struct()

Pass along the format info from .fb_create() to eliminate the
redundant drm_get_format_info() calls from the gem fb code.

v2: Fix kernel docs (Laurent)

Cc: Dave Airlie <airlied@redhat.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko Stübner" <heiko@sntech.de>
Cc: Andy Yan <andy.yan@rock-chips.com>
Cc: Oleksandr Andrushchenko <oleksandr_andrushchenko@epam.com>
Cc: virtualization@lists.linux.dev
Cc: spice-devel@lists.freedesktop.org
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250701090722.13645-8-ville.syrjala@linux.intel.com
drivers/gpu/drm/drm_gem_framebuffer_helper.c
drivers/gpu/drm/qxl/qxl_display.c
drivers/gpu/drm/rockchip/rockchip_drm_fb.c
drivers/gpu/drm/xen/xen_drm_front_kms.c
include/drm/drm_gem_framebuffer_helper.h