mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 08:07:32 -04:00
drm/amd/display: Pass correct number for gamma entries
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>
This commit is contained in:
parent
a2607aef3d
commit
7483bed45d
1 changed files with 2 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue