diff options
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.14.71/0750-drm-amd-display-Pass-correct-number-for-gamma-entrie.patch')
-rw-r--r-- | common/recipes-kernel/linux/linux-yocto-4.14.71/0750-drm-amd-display-Pass-correct-number-for-gamma-entrie.patch | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.14.71/0750-drm-amd-display-Pass-correct-number-for-gamma-entrie.patch b/common/recipes-kernel/linux/linux-yocto-4.14.71/0750-drm-amd-display-Pass-correct-number-for-gamma-entrie.patch new file mode 100644 index 00000000..beefd7b2 --- /dev/null +++ b/common/recipes-kernel/linux/linux-yocto-4.14.71/0750-drm-amd-display-Pass-correct-number-for-gamma-entrie.patch @@ -0,0 +1,33 @@ +From d745afb557e3d184140eb5db0c141b66273ee20f Mon Sep 17 00:00:00 2001 +From: Harry Wentland <harry.wentland@amd.com> +Date: Tue, 8 Aug 2017 12:23:15 -0400 +Subject: [PATCH 0750/4131] 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> +--- + 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 be6cb96..c802dd8 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.7.4 + |