]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/amd/display: Remove unused get_max_support_fbc_buffersize
authorDr. David Alan Gilbert <linux@treblig.org>
Sun, 2 Feb 2025 21:58:55 +0000 (21:58 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 13 Feb 2025 02:03:03 +0000 (21:03 -0500)
get_max_support_fbc_buffersize() is unused since 2021's
commit 94f0d0c80cf3 ("drm/amd/display/dc/dce110/dce110_compressor: Remove
unused function 'dce110_get_required_compressed_surfacesize")
removed it's only caller.

Remove it.

Signed-off-by: Dr. David Alan Gilbert <linux@treblig.org>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.c
drivers/gpu/drm/amd/display/dc/dce110/dce110_compressor.h

index d241ee13b2935063a55a1bd26612c6510057115a..59a0961b49da5c8e1321ac33e17afe91eb277fe8 100644 (file)
@@ -409,19 +409,6 @@ void dce110_compressor_destroy(struct compressor **compressor)
        *compressor = NULL;
 }
 
-void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y)
-{
-       *max_x = FBC_MAX_X;
-       *max_y = FBC_MAX_Y;
-
-       /* if (m_smallLocalFrameBufferMemory == 1)
-        * {
-        *      *max_x = FBC_MAX_X_SG;
-        *      *max_y = FBC_MAX_Y_SG;
-        * }
-        */
-}
-
 static const struct compressor_funcs dce110_compressor_funcs = {
        .power_up_fbc = dce110_compressor_power_up_fbc,
        .enable_fbc = dce110_compressor_enable_fbc,
index 26c7335a1cbf936a122b5ab9b4b7baeededfd937..223c57941e9289f1a33bbe5e8efebcb3a6671f91 100644 (file)
@@ -75,7 +75,5 @@ void dce110_compressor_program_lpt_control(struct compressor *cp,
 
 bool dce110_compressor_is_lpt_enabled_in_hw(struct compressor *cp);
 
-void get_max_support_fbc_buffersize(unsigned int *max_x, unsigned int *max_y);
-
 #endif