diff options
author | Ilya Bakoulin <ilya.bakoulin@amd.com> | 2023-10-14 01:34:58 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-11-07 17:16:22 +0100 |
commit | 566f648c4e028ffd62f533d2e8d7e7f89d0e420c (patch) | |
tree | 063a155f09a14fc837bcc64394f8d9822d9a321f /drivers | |
parent | drm/amd/display: 3.2.257 (diff) | |
download | linux-566f648c4e028ffd62f533d2e8d7e7f89d0e420c.tar.xz linux-566f648c4e028ffd62f533d2e8d7e7f89d0e420c.zip |
drm/amd/display: Fix missing blendTF programming
[Why]
When MPO surface pixel format is not ARGB8888, fast update can miss
programming blendTF.
[How]
Set the gamma_change update flag on blend_tf change.
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Acked-by: Hersen Wu <hersenxs.wu@amd.com>
Signed-off-by: Ilya Bakoulin <ilya.bakoulin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc.c b/drivers/gpu/drm/amd/display/dc/core/dc.c index 4360a696f10a..940ceaca8545 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc.c @@ -2582,6 +2582,9 @@ static enum surface_update_type det_surface_update(const struct dc *dc, if (u->gamut_remap_matrix) update_flags->bits.gamut_remap_change = 1; + if (u->blend_tf) + update_flags->bits.gamma_change = 1; + if (u->gamma) { enum surface_pixel_format format = SURFACE_PIXEL_FORMAT_GRPH_BEGIN; |