]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/plane: modify create_in_formats to acommodate async
authorArun R Murthy <arun.r.murthy@intel.com>
Mon, 7 Apr 2025 05:43:46 +0000 (11:13 +0530)
committerSuraj Kandpal <suraj.kandpal@intel.com>
Fri, 9 May 2025 10:00:28 +0000 (15:30 +0530)
commit0d6dcd741c266389bbf0a8758f537b3a171ac32a
tree105a503137739e7299d2368ef57c733b5648f357
parent9cd5cc9da7ff650f1e9818dbfd54232c00ec47ed
drm/plane: modify create_in_formats to acommodate async

create_in_formats creates the list of supported format/modifiers for
synchronous flips, modify the same function so as to take the
format_mod_supported as argument and create list of format/modifier for
async as well.

v5: create_in_formats can return -ve value in failure case, correct the
if condition to check the creation of blob <Chaitanya>
Dont add the modifier for which none of the formats is not supported.
v6: Remove the code for masking the unsupported modifiers as UMD can
leave with it. (Naveen/Chaitanya)
v7: Retain the unsupported modifiers, userspace should have no
impact, return pointer to blob instead of blob_id(Ville)

Signed-off-by: Arun R Murthy <arun.r.murthy@intel.com>
Acked-by: Xaver Hugl <xaver.hugl@kde.org>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Chaitanya Kumar Borah <chaitanya.kumar.borah@intel.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Tested-by: Naveen Kumar <naveen1.kumar@intel.com>
Signed-off-by: Suraj Kandpal <suraj.kandpal@intel.com>
Link: https://lore.kernel.org/r/20250407-asyn-v13-2-b93ef83076c5@intel.com
drivers/gpu/drm/drm_plane.c