[PATCH 119/120] drm/amd/display: Pass correct number for gamma entries

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This was broken by "implement DXGI Gamma Ramps"

Change-Id: I397cdfbc7e2ea0ed2791b2b822bc5c9ae3f46e9f
Signed-off-by: Harry Wentland <harry.wentland at amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
---
 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 b1244435416c..e337b18e455d 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -1895,7 +1895,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.11.0



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux