27 lines
895 B
Diff
27 lines
895 B
Diff
diff --git a/drivers/gpu/drm/amd/display/dc/dml/dml1_frl_cap_chk.c b/drivers/gpu/drm/amd/display/dc/dml/dml1_frl_cap_chk.c
|
|
--- a/drivers/gpu/drm/amd/display/dc/dml/dml1_frl_cap_chk.c
|
|
+++ b/drivers/gpu/drm/amd/display/dc/dml/dml1_frl_cap_chk.c
|
|
@@ -630,17 +630,17 @@ enum frl_cap_chk_result dml1_frl_cap_chk(struct frl_cap_chk_params *params)
|
|
{
|
|
struct frl_cap_chk_intermediates inter;
|
|
|
|
-#if defined (CONFIG_DRM_AMD_DC_FP)
|
|
- if (params->compressed)
|
|
- return dml1_frl_cap_chk_compressed(params, &inter);
|
|
-#endif
|
|
-
|
|
return dml1_frl_cap_chk_inter(params, &inter);
|
|
}
|
|
|
|
enum frl_cap_chk_result dml1_frl_cap_chk_inter(struct frl_cap_chk_params *params,
|
|
struct frl_cap_chk_intermediates *inter)
|
|
{
|
|
+#if defined (CONFIG_DRM_AMD_DC_FP)
|
|
+ if (params->compressed)
|
|
+ return dml1_frl_cap_chk_compressed(params, inter);
|
|
+#endif
|
|
+
|
|
return dml1_frl_cap_chk_uncompressed(params, inter);
|
|
}
|
|
|