diff options
author | Ilya Bakoulin <Ilya.Bakoulin@amd.com> | 2019-10-03 17:35:32 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2019-11-19 10:12:53 -0500 |
commit | e8cfbdac9a07c4faad60ef9bc82c53079faf4557 (patch) | |
tree | e7a4491cf1efcfc84f14ec99e7f1c94c18c0912f /drivers/gpu/drm/amd/display/dc/dsc | |
parent | f6fe4053b91fab916eaf69de48a35f6acc598140 (diff) | |
download | linux-stable-e8cfbdac9a07c4faad60ef9bc82c53079faf4557.tar.gz linux-stable-e8cfbdac9a07c4faad60ef9bc82c53079faf4557.tar.bz2 linux-stable-e8cfbdac9a07c4faad60ef9bc82c53079faf4557.zip |
drm/amd/display: Add DSC 422Native debug option
[Why]
Need to be able to enable native 422 for debugging purposes.
[How]
Add new dc_debug_options bool and check it in the get_dsc_enc_caps
function.
Signed-off-by: Ilya Bakoulin <Ilya.Bakoulin@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dsc')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c b/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c index dabd3b7a4cdc..ec86ba73a039 100644 --- a/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c +++ b/drivers/gpu/drm/amd/display/dc/dsc/dc_dsc.c @@ -25,6 +25,7 @@ #include "dc_hw_types.h" #include "dsc.h" #include <drm/drm_dp_helper.h> +#include "dc.h" struct dc_dsc_policy { bool use_min_slices_h; @@ -236,8 +237,11 @@ static void get_dsc_enc_caps( // This is a static HW query, so we can use any DSC memset(dsc_enc_caps, 0, sizeof(struct dsc_enc_caps)); - if (dsc) + if (dsc) { dsc->funcs->dsc_get_enc_caps(dsc_enc_caps, pixel_clock_100Hz); + if (dsc->ctx->dc->debug.native422_support) + dsc_enc_caps->color_formats.bits.YCBCR_NATIVE_422 = 1; + } } /* Returns 'false' if no intersection was found for at least one capablity. |