drm/i915: Rename PLANE_CTL_DECOMPRESSION_ENABLE
[ Upstream commit 53867b46fa8443713b3aee520d6ca558b222d829 ] Rename PLANE_CTL_DECOMPRESSION_ENABLE to resemble the bpsec name - PLANE_CTL_RENDER_DECOMPRESSION_ENABLE Suggested-by: Rodrigo Vivi <rodrigo.vivi@intel.com> Cc: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180822015053.1420-2-dhinakaran.pandiyan@intel.com Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
4b2dfc0e2d
commit
8ccbb1d24c
2 changed files with 5 additions and 5 deletions
|
@ -6531,7 +6531,7 @@ enum {
|
||||||
#define PLANE_CTL_YUV422_UYVY (1 << 16)
|
#define PLANE_CTL_YUV422_UYVY (1 << 16)
|
||||||
#define PLANE_CTL_YUV422_YVYU (2 << 16)
|
#define PLANE_CTL_YUV422_YVYU (2 << 16)
|
||||||
#define PLANE_CTL_YUV422_VYUY (3 << 16)
|
#define PLANE_CTL_YUV422_VYUY (3 << 16)
|
||||||
#define PLANE_CTL_DECOMPRESSION_ENABLE (1 << 15)
|
#define PLANE_CTL_RENDER_DECOMPRESSION_ENABLE (1 << 15)
|
||||||
#define PLANE_CTL_TRICKLE_FEED_DISABLE (1 << 14)
|
#define PLANE_CTL_TRICKLE_FEED_DISABLE (1 << 14)
|
||||||
#define PLANE_CTL_PLANE_GAMMA_DISABLE (1 << 13) /* Pre-GLK */
|
#define PLANE_CTL_PLANE_GAMMA_DISABLE (1 << 13) /* Pre-GLK */
|
||||||
#define PLANE_CTL_TILED_MASK (0x7 << 10)
|
#define PLANE_CTL_TILED_MASK (0x7 << 10)
|
||||||
|
|
|
@ -3561,11 +3561,11 @@ static u32 skl_plane_ctl_tiling(uint64_t fb_modifier)
|
||||||
case I915_FORMAT_MOD_Y_TILED:
|
case I915_FORMAT_MOD_Y_TILED:
|
||||||
return PLANE_CTL_TILED_Y;
|
return PLANE_CTL_TILED_Y;
|
||||||
case I915_FORMAT_MOD_Y_TILED_CCS:
|
case I915_FORMAT_MOD_Y_TILED_CCS:
|
||||||
return PLANE_CTL_TILED_Y | PLANE_CTL_DECOMPRESSION_ENABLE;
|
return PLANE_CTL_TILED_Y | PLANE_CTL_RENDER_DECOMPRESSION_ENABLE;
|
||||||
case I915_FORMAT_MOD_Yf_TILED:
|
case I915_FORMAT_MOD_Yf_TILED:
|
||||||
return PLANE_CTL_TILED_YF;
|
return PLANE_CTL_TILED_YF;
|
||||||
case I915_FORMAT_MOD_Yf_TILED_CCS:
|
case I915_FORMAT_MOD_Yf_TILED_CCS:
|
||||||
return PLANE_CTL_TILED_YF | PLANE_CTL_DECOMPRESSION_ENABLE;
|
return PLANE_CTL_TILED_YF | PLANE_CTL_RENDER_DECOMPRESSION_ENABLE;
|
||||||
default:
|
default:
|
||||||
MISSING_CASE(fb_modifier);
|
MISSING_CASE(fb_modifier);
|
||||||
}
|
}
|
||||||
|
@ -8812,13 +8812,13 @@ skylake_get_initial_plane_config(struct intel_crtc *crtc,
|
||||||
fb->modifier = I915_FORMAT_MOD_X_TILED;
|
fb->modifier = I915_FORMAT_MOD_X_TILED;
|
||||||
break;
|
break;
|
||||||
case PLANE_CTL_TILED_Y:
|
case PLANE_CTL_TILED_Y:
|
||||||
if (val & PLANE_CTL_DECOMPRESSION_ENABLE)
|
if (val & PLANE_CTL_RENDER_DECOMPRESSION_ENABLE)
|
||||||
fb->modifier = I915_FORMAT_MOD_Y_TILED_CCS;
|
fb->modifier = I915_FORMAT_MOD_Y_TILED_CCS;
|
||||||
else
|
else
|
||||||
fb->modifier = I915_FORMAT_MOD_Y_TILED;
|
fb->modifier = I915_FORMAT_MOD_Y_TILED;
|
||||||
break;
|
break;
|
||||||
case PLANE_CTL_TILED_YF:
|
case PLANE_CTL_TILED_YF:
|
||||||
if (val & PLANE_CTL_DECOMPRESSION_ENABLE)
|
if (val & PLANE_CTL_RENDER_DECOMPRESSION_ENABLE)
|
||||||
fb->modifier = I915_FORMAT_MOD_Yf_TILED_CCS;
|
fb->modifier = I915_FORMAT_MOD_Yf_TILED_CCS;
|
||||||
else
|
else
|
||||||
fb->modifier = I915_FORMAT_MOD_Yf_TILED;
|
fb->modifier = I915_FORMAT_MOD_Yf_TILED;
|
||||||
|
|
Loading…
Reference in a new issue