diff options
Diffstat (limited to 'meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3248-drm-amd-display-Update-the-register-GRPH_SWAP_CNTL-i.patch')
-rw-r--r-- | meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3248-drm-amd-display-Update-the-register-GRPH_SWAP_CNTL-i.patch | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3248-drm-amd-display-Update-the-register-GRPH_SWAP_CNTL-i.patch b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3248-drm-amd-display-Update-the-register-GRPH_SWAP_CNTL-i.patch new file mode 100644 index 00000000..5c0b6e59 --- /dev/null +++ b/meta-amd-bsp/recipes-kernel/linux/linux-yocto-4.14.71/3248-drm-amd-display-Update-the-register-GRPH_SWAP_CNTL-i.patch @@ -0,0 +1,54 @@ +From 1cd58ceadad419db1b5dfe48f68d8b8bd93ee335 Mon Sep 17 00:00:00 2001 +From: Duke Du <Duke.Du@amd.com> +Date: Thu, 4 Jan 2018 09:32:06 +0800 +Subject: [PATCH 3248/4131] drm/amd/display: Update the register GRPH_SWAP_CNTL + if surface pixel format changed. + +Signed-off-by: Duke Du <Duke.Du@amd.com> +--- + drivers/gpu/drm/amd/display/dc/core/dc.c | 3 +++ + drivers/gpu/drm/amd/display/dc/dc.h | 1 + + drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c | 1 + + 3 files changed, 5 insertions(+) + +diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c +index 0ea3f5e..b2595ce 100644 +--- a/drivers/gpu/drm/amd/display/dc/core/dc.c ++++ b/drivers/gpu/drm/amd/display/dc/core/dc.c +@@ -1066,6 +1066,9 @@ static enum surface_update_type get_plane_info_update_type(const struct dc_surfa + if (u->plane_info->rotation != u->surface->rotation) + update_flags->bits.rotation_change = 1; + ++ if (u->plane_info->format != u->surface->format) ++ update_flags->bits.pixel_format_change = 1; ++ + if (u->plane_info->stereo_format != u->surface->stereo_format) + update_flags->bits.stereo_format_change = 1; + +diff --git a/drivers/gpu/drm/amd/display/dc/dc.h b/drivers/gpu/drm/amd/display/dc/dc.h +index 24be3a9..c02b50f 100644 +--- a/drivers/gpu/drm/amd/display/dc/dc.h ++++ b/drivers/gpu/drm/amd/display/dc/dc.h +@@ -400,6 +400,7 @@ union surface_update_flags { + uint32_t in_transfer_func_change:1; + uint32_t input_csc_change:1; + uint32_t output_tf_change:1; ++ uint32_t pixel_format_change:1; + + /* Full updates */ + uint32_t new_plane:1; +diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +index 7e99d78..c6a4fa2 100644 +--- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c ++++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_hw_sequencer.c +@@ -1725,6 +1725,7 @@ static void update_dchubp_dpp( + } + + if (plane_state->update_flags.bits.full_update || ++ plane_state->update_flags.bits.pixel_format_change || + plane_state->update_flags.bits.horizontal_mirror_change || + plane_state->update_flags.bits.rotation_change || + plane_state->update_flags.bits.swizzle_change || +-- +2.7.4 + |