As UINT16 pixel formats are not listed as supported formats in any
of the display versions so far, there is no point is having these
formats listed as supported for FBC. So remove the UINT16 formats
from the supported formats for FBC.

Signed-off-by: Vinod Govindapillai <[email protected]>
---
 drivers/gpu/drm/i915/display/intel_fbc.c | 10 +---------
 1 file changed, 1 insertion(+), 9 deletions(-)

diff --git a/drivers/gpu/drm/i915/display/intel_fbc.c 
b/drivers/gpu/drm/i915/display/intel_fbc.c
index 9f39b6990bbd..cf4d145d6a8c 100644
--- a/drivers/gpu/drm/i915/display/intel_fbc.c
+++ b/drivers/gpu/drm/i915/display/intel_fbc.c
@@ -1204,15 +1204,7 @@ static bool xe3p_lpd_fbc_pixel_format_is_valid(const 
struct intel_plane_state *p
        if (xe3p_lpd_fbc_fp16_format_is_valid(plane_state))
                return true;
 
-       switch (fb->format->format) {
-       case DRM_FORMAT_XRGB16161616:
-       case DRM_FORMAT_XBGR16161616:
-       case DRM_FORMAT_ARGB16161616:
-       case DRM_FORMAT_ABGR16161616:
-               return true;
-       default:
-               return false;
-       }
+       return false;
 }
 
 bool intel_fbc_need_pixel_normalizer(const struct intel_plane_state 
*plane_state)
-- 
2.43.0

Reply via email to