From 7483bed45de728dacc7cfffe641e67abb3513f61 Mon Sep 17 00:00:00 2001 From: Harry Wentland Date: Tue, 8 Aug 2017 12:23:15 -0400 Subject: [PATCH] drm/amd/display: Pass correct number for gamma entries This was broken by "implement DXGI Gamma Ramps" Signed-off-by: Harry Wentland Reviewed-by: Andrey Grodzovsky Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 0caf8135084b..7a50aeae8ad7 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -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); -- 2.30.2