]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
drm/amd/display: Fix missing blendTF programming
authorIlya Bakoulin <ilya.bakoulin@amd.com>
Fri, 13 Oct 2023 23:34:58 +0000 (19:34 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 7 Nov 2023 16:16:22 +0000 (11:16 -0500)
[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>
drivers/gpu/drm/amd/display/dc/core/dc.c

index 4360a696f10a3ec7cad86e23e7b5d2693de83696..940ceaca8545388aa208a462098f4fe80d5e9f7a 100644 (file)
@@ -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;