diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2891-drm-amd-display-Add-optimized_required-flag.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2891-drm-amd-display-Add-optimized_required-flag.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2891-drm-amd-display-Add-optimized_required-flag.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2891-drm-amd-display-Add-optimized_required-flag.patch new file mode 100644 index 00000000..b760faef --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/2891-drm-amd-display-Add-optimized_required-flag.patch @@ -0,0 +1,41 @@ +From 4e42ab2d898e7cec312c9e53a182447748195480 Mon Sep 17 00:00:00 2001 +From: Harry Wentland <harry.wentland@amd.com> +Date: Wed, 22 Nov 2017 15:59:39 -0500 +Subject: [PATCH 2891/4131] drm/amd/display: Add optimized_required flag + +Signed-off-by: Harry Wentland <harry.wentland@amd.com> +Reviewed-by: Leo (Sunpeng) Li <sunpeng.li@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc.c | 2 ++ + drivers/gpu/drm/amd/display/dc/dc.h | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c +index f1467192..cd767e1 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -788,6 +788,8 @@ bool dc_post_update_surfaces_to_stream(struct dc *dc) + dc->hwss.disable_plane(dc, &context->res_ctx.pipe_ctx[i]); + } + ++ dc->optimized_required = false; ++ + /* 3rd param should be true, temp w/a for RV*/ + #if defined(CONFIG_DRM_AMD_DC_DCN1_0) + dc->hwss.set_bandwidth(dc, context, dc->ctx->dce_version < DCN_VERSION_1_0); +diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h +index 31ad366..23344bc 100644 +--- a/drivers/gpu/drm/amd/display/dc/dc.h ++++ b/drivers/gpu/drm/amd/display/dc/dc.h +@@ -250,6 +250,8 @@ struct dc { + */ + struct dm_pp_display_configuration prev_display_config; + ++ bool optimized_required; ++ + /* FBC compressor */ + #if defined(CONFIG_DRM_AMD_DC_FBC) + struct compressor *fbc_compressor; +-- +2.7.4 + |