]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
drm/amd/display: Pass correct number for gamma entries
authorHarry Wentland <harry.wentland@amd.com>
Tue, 8 Aug 2017 16:23:15 +0000 (12:23 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 22:16:28 +0000 (18:16 -0400)
This was broken by "implement DXGI Gamma Ramps"

Signed-off-by: Harry Wentland <harry.wentland@amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c

index 0caf8135084b082c472bccd81aa5075eccfb4117..7a50aeae8ad77035e48a2352981ddb8265a4ce83 100644 (file)
@@ -1890,7 +1890,8 @@ static void fill_gamma_from_crtc_state(
                return;
        }
 
-       gamma->type = GAMMA_RGB_256_ENTRIES;
+       gamma->type = GAMMA_RGB_256;
+       gamma->num_entries = GAMMA_RGB_256_ENTRIES;
        for (i = 0; i < GAMMA_RGB_256_ENTRIES; i++) {
                gamma->entries.red[i] = dal_fixed31_32_from_int(lut[i].red);
                gamma->entries.green[i] = dal_fixed31_32_from_int(lut[i].green);