Skip to contentSkip to conversation

Revert "drm/amd/display: Add NV12/P010 formats to primary plane"

PATCH In review Harry Wentland 2 participants 2 messages Mar 17

Subsystems (3)
lore
Share & tools
lore

Harry Wentland

author maintainer
#0 lore raw

PATCH 1/1 Revert "drm/amd/display: Add NV12/P010 formats to primary plane"

With this change we're adding NV12 and P010 twice to reported formats on a primary plane, which causes us to hit an assert in Weston.

This reverts commit e01716e8352a3cf504058fd6ab90d8969e379275.

Fixes e01716e8352a ("drm/amd/display: Add NV12/P010 formats to primary plane")
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +0 -3
index 0638f77c511b..812497d428aa 100644
@@ -62,9 +62,6 @@ static const uint32_t rgb_formats[] = {
 	DRM_FORMAT_XBGR8888,
 	DRM_FORMAT_ABGR8888,
 	DRM_FORMAT_RGB565,
-	DRM_FORMAT_NV21,
-	DRM_FORMAT_NV12,
-	DRM_FORMAT_P010
 };
 
 static const uint32_t overlay_formats[] = {
Signature · 1 line
2.53.0
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Harry Wentland

With this change we're adding NV12 and P010 twice to reported formats on a primary plane, which causes us to hit an assert in Weston.

This reverts commit e01716e8352a3cf504058fd6ab90d8969e379275.

Fixes e01716e8352a ("drm/amd/display: Add NV12/P010 formats to primary plane")
Quoted 18 lines
---
 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_plane.c +0 -3
index 0638f77c511b..812497d428aa 100644
@@ -62,9 +62,6 @@ static const uint32_t rgb_formats[] = {
 	DRM_FORMAT_XBGR8888,
 	DRM_FORMAT_ABGR8888,
 	DRM_FORMAT_RGB565,
-	DRM_FORMAT_NV21,
-	DRM_FORMAT_NV12,
-	DRM_FORMAT_P010
 };
 
 static const uint32_t overlay_formats[] = {