mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-29 05:36:47 +00:00
i915: Fix Full Limited conversion
This commit is contained in:
parent
f7b75dccf2
commit
f58cd8833f
34
packages/linux/patches/3.12.1/linux-992.03-i915_fix_clamping_to_limited_range.patch
vendored
Normal file
34
packages/linux/patches/3.12.1/linux-992.03-i915_fix_clamping_to_limited_range.patch
vendored
Normal file
@ -0,0 +1,34 @@
|
||||
From f6234120ad06363236598d3a009c6117d66914a4 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@linux.intel.com>
|
||||
Date: Mon, 25 Nov 2013 16:19:30 +0200
|
||||
Subject: [PATCH] drm/i915: Fix pipe CSC post offset calculation
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
We were miscalculating the pipe CSC post offset for the full->limited
|
||||
range conversion. The resulting post offset was double what it was
|
||||
supposed to be, which caused blacks to come out grey when using
|
||||
limited range output on HSW+.
|
||||
|
||||
Cc: stable@vger.kernel.org
|
||||
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
|
||||
---
|
||||
drivers/gpu/drm/i915/intel_display.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
|
||||
index e85d838..4fab496 100644
|
||||
--- a/drivers/gpu/drm/i915/intel_display.c
|
||||
+++ b/drivers/gpu/drm/i915/intel_display.c
|
||||
@@ -5991,7 +5991,7 @@ static void intel_set_pipe_csc(struct drm_crtc *crtc)
|
||||
uint16_t postoff = 0;
|
||||
|
||||
if (intel_crtc->config.limited_color_range)
|
||||
- postoff = (16 * (1 << 13) / 255) & 0x1fff;
|
||||
+ postoff = (16 * (1 << 12) / 255) & 0x1fff;
|
||||
|
||||
I915_WRITE(PIPE_CSC_POSTOFF_HI(pipe), postoff);
|
||||
I915_WRITE(PIPE_CSC_POSTOFF_ME(pipe), postoff);
|
||||
--
|
||||
1.8.3.2
|
@ -0,0 +1,34 @@
|
||||
From f6234120ad06363236598d3a009c6117d66914a4 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Ville=20Syrj=C3=A4l=C3=A4?= <ville.syrjala@linux.intel.com>
|
||||
Date: Mon, 25 Nov 2013 16:19:30 +0200
|
||||
Subject: [PATCH] drm/i915: Fix pipe CSC post offset calculation
|
||||
MIME-Version: 1.0
|
||||
Content-Type: text/plain; charset=UTF-8
|
||||
Content-Transfer-Encoding: 8bit
|
||||
|
||||
We were miscalculating the pipe CSC post offset for the full->limited
|
||||
range conversion. The resulting post offset was double what it was
|
||||
supposed to be, which caused blacks to come out grey when using
|
||||
limited range output on HSW+.
|
||||
|
||||
Cc: stable@vger.kernel.org
|
||||
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
|
||||
---
|
||||
drivers/gpu/drm/i915/intel_display.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
|
||||
index e85d838..4fab496 100644
|
||||
--- a/drivers/gpu/drm/i915/intel_display.c
|
||||
+++ b/drivers/gpu/drm/i915/intel_display.c
|
||||
@@ -5991,7 +5991,7 @@ static void intel_set_pipe_csc(struct drm_crtc *crtc)
|
||||
uint16_t postoff = 0;
|
||||
|
||||
if (intel_crtc->config.limited_color_range)
|
||||
- postoff = (16 * (1 << 13) / 255) & 0x1fff;
|
||||
+ postoff = (16 * (1 << 12) / 255) & 0x1fff;
|
||||
|
||||
I915_WRITE(PIPE_CSC_POSTOFF_HI(pipe), postoff);
|
||||
I915_WRITE(PIPE_CSC_POSTOFF_ME(pipe), postoff);
|
||||
--
|
||||
1.8.3.2
|
Loading…
x
Reference in New Issue
Block a user