]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/i915/xe3p_lpd: Add FBC support for FP16 formats
authorVinod Govindapillai <vinod.govindapillai@intel.com>
Mon, 27 Oct 2025 13:39:59 +0000 (15:39 +0200)
committerVinod Govindapillai <vinod.govindapillai@intel.com>
Fri, 31 Oct 2025 11:32:16 +0000 (13:32 +0200)
Add supported FP16 formats for FBC. FBC can be enabled with
FP16 formats only when plane pixel normalizer block is enabled.
The follow up patches will handle the pixel normalizer block
configuration.

v2: changes related to comments to use better tracking of pixel
    normalizer

Bspec: 6881, 69863, 68904
Cc: Shekhar Chauhan <shekhar.chauhan@intel.com>
Signed-off-by: Vinod Govindapillai <vinod.govindapillai@intel.com>
Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com>
Reviewed-by: Uma Shankar <uma.shankar@intel.com>
Link: https://patch.msgid.link/20251027134001.325064-3-vinod.govindapillai@intel.com
drivers/gpu/drm/i915/display/intel_fbc.c

index a06db84525fc9e072b0e86430628f8f62bf85007..57f4ff2d10caf15db98f5c51d9b8fa5826049184 100644 (file)
@@ -1096,6 +1096,8 @@ static bool xe3p_lpd_fbc_pixel_format_is_valid(const struct intel_plane_state *p
        case DRM_FORMAT_XBGR16161616:
        case DRM_FORMAT_ARGB16161616:
        case DRM_FORMAT_ABGR16161616:
+       case DRM_FORMAT_ARGB16161616F:
+       case DRM_FORMAT_ABGR16161616F:
                return true;
        default:
                return false;