]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
drm/amd/display: Add default switch case for DCC
authorChris Park <Chris.Park@amd.com>
Fri, 20 Dec 2019 20:30:05 +0000 (15:30 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 16 Jan 2020 19:15:42 +0000 (14:15 -0500)
Signed-off-by: Chris Park <Chris.Park@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Reviewed-by: Jordan Lazare <Jordan.Lazare@amd.com>
Acked-by: Harry Wentland <harry.wentland@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hubbub.c
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_hubbub.c

index a02c10e23e0d661dc67b552a37d6b53b618f7665..f36a0d8cedfe1eec4b8db2766ca401991200ad41 100644 (file)
@@ -930,6 +930,9 @@ static bool hubbub1_get_dcc_compression_cap(struct hubbub *hubbub,
                output->grph.rgb.max_compressed_blk_size = 64;
                output->grph.rgb.independent_64b_blks = true;
                break;
+       default:
+               ASSERT(false);
+               break;
        }
 
        output->capable = true;
index 836af0f2bbdad89108bcdd5fefbc31714fe2f1d1..9235f7d294545ea9296c9fcecee3450f4b57d2c6 100644 (file)
@@ -293,6 +293,9 @@ bool hubbub2_get_dcc_compression_cap(struct hubbub *hubbub,
                output->grph.rgb.max_compressed_blk_size = 64;
                output->grph.rgb.independent_64b_blks = true;
                break;
+       default:
+               ASSERT(false);
+               break;
        }
        output->capable = true;
        output->const_color_support = true;