Commit 7483bed4 authored by Harry Wentland's avatar Harry Wentland Committed by Alex Deucher

drm/amd/display: Pass correct number for gamma entries

This was broken by "implement DXGI Gamma Ramps"
Signed-off-by: default avatarHarry Wentland <harry.wentland@amd.com>
Reviewed-by: default avatarAndrey Grodzovsky <Andrey.Grodzovsky@amd.com>
Acked-by: default avatarHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent a2607aef
...@@ -1890,7 +1890,8 @@ static void fill_gamma_from_crtc_state( ...@@ -1890,7 +1890,8 @@ static void fill_gamma_from_crtc_state(
return; 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++) { for (i = 0; i < GAMMA_RGB_256_ENTRIES; i++) {
gamma->entries.red[i] = dal_fixed31_32_from_int(lut[i].red); gamma->entries.red[i] = dal_fixed31_32_from_int(lut[i].red);
gamma->entries.green[i] = dal_fixed31_32_from_int(lut[i].green); gamma->entries.green[i] = dal_fixed31_32_from_int(lut[i].green);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment