Commit 423ee8e9 authored by Ville Syrjälä's avatar Ville Syrjälä

drm/i915: Disable sprite gamma on ivb-bdw

We don't currently have any use for the sprite gamma on ivb-bdw.
Let's disable it. We already do that on skl+.

On pre-ivb there is no way to disable the sprite gamma, and it
only affects YCbCr pixel formats, whereas on ivb+ it also
affects RGB formats.
Reviewed-by: default avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190703200824.5971-3-ville.syrjala@linux.intel.com
parent 26443a4b
...@@ -1013,6 +1013,8 @@ static u32 ivb_sprite_ctl(const struct intel_crtc_state *crtc_state, ...@@ -1013,6 +1013,8 @@ static u32 ivb_sprite_ctl(const struct intel_crtc_state *crtc_state,
return 0; return 0;
} }
sprctl |= SPRITE_INT_GAMMA_DISABLE;
if (plane_state->base.color_encoding == DRM_COLOR_YCBCR_BT709) if (plane_state->base.color_encoding == DRM_COLOR_YCBCR_BT709)
sprctl |= SPRITE_YUV_TO_RGB_CSC_FORMAT_BT709; sprctl |= SPRITE_YUV_TO_RGB_CSC_FORMAT_BT709;
......
...@@ -6465,7 +6465,7 @@ enum { ...@@ -6465,7 +6465,7 @@ enum {
#define SPRITE_YUV_ORDER_VYUY (3 << 16) #define SPRITE_YUV_ORDER_VYUY (3 << 16)
#define SPRITE_ROTATE_180 (1 << 15) #define SPRITE_ROTATE_180 (1 << 15)
#define SPRITE_TRICKLE_FEED_DISABLE (1 << 14) #define SPRITE_TRICKLE_FEED_DISABLE (1 << 14)
#define SPRITE_INT_GAMMA_ENABLE (1 << 13) #define SPRITE_INT_GAMMA_DISABLE (1 << 13)
#define SPRITE_TILED (1 << 10) #define SPRITE_TILED (1 << 10)
#define SPRITE_DEST_KEY (1 << 2) #define SPRITE_DEST_KEY (1 << 2)
#define _SPRA_LINOFF 0x70284 #define _SPRA_LINOFF 0x70284
......
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