Skip to content

Commit a476990

Browse files
committed
drm/sun4i: de2/de3: Remove unsupported VI layer formats
YUV444 and YVU444 are planar formats, but HW format RGB888 is packed. This means that those two mappings were never correct. Remove them. Fixes: 60a3dcf ("drm/sun4i: Add DE2 definitions for YUV formats") Acked-by: Maxime Ripard <[email protected]> Signed-off-by: Jernej Skrabec <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 852d765 commit a476990

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

drivers/gpu/drm/sun4i/sun8i_mixer.c

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -196,12 +196,6 @@ static const struct de2_fmt_info de2_formats[] = {
196196
.rgb = false,
197197
.csc = SUN8I_CSC_MODE_YUV2RGB,
198198
},
199-
{
200-
.drm_fmt = DRM_FORMAT_YUV444,
201-
.de2_fmt = SUN8I_MIXER_FBFMT_RGB888,
202-
.rgb = true,
203-
.csc = SUN8I_CSC_MODE_YUV2RGB,
204-
},
205199
{
206200
.drm_fmt = DRM_FORMAT_YUV422,
207201
.de2_fmt = SUN8I_MIXER_FBFMT_YUV422,
@@ -220,12 +214,6 @@ static const struct de2_fmt_info de2_formats[] = {
220214
.rgb = false,
221215
.csc = SUN8I_CSC_MODE_YUV2RGB,
222216
},
223-
{
224-
.drm_fmt = DRM_FORMAT_YVU444,
225-
.de2_fmt = SUN8I_MIXER_FBFMT_RGB888,
226-
.rgb = true,
227-
.csc = SUN8I_CSC_MODE_YVU2RGB,
228-
},
229217
{
230218
.drm_fmt = DRM_FORMAT_YVU422,
231219
.de2_fmt = SUN8I_MIXER_FBFMT_YUV422,

drivers/gpu/drm/sun4i/sun8i_vi_layer.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,11 +431,9 @@ static const u32 sun8i_vi_layer_formats[] = {
431431
DRM_FORMAT_YUV411,
432432
DRM_FORMAT_YUV420,
433433
DRM_FORMAT_YUV422,
434-
DRM_FORMAT_YUV444,
435434
DRM_FORMAT_YVU411,
436435
DRM_FORMAT_YVU420,
437436
DRM_FORMAT_YVU422,
438-
DRM_FORMAT_YVU444,
439437
};
440438

441439
struct sun8i_vi_layer *sun8i_vi_layer_init_one(struct drm_device *drm,

0 commit comments

Comments
 (0)