OSDN Git Service

drm/amd/display: validate plane format on primary plane
authorShirish S <shirish.s@amd.com>
Wed, 7 Mar 2018 07:06:11 +0000 (12:36 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Mar 2018 21:11:36 +0000 (16:11 -0500)
commit65e4b49019029e7effcfc7855af822cd75f28c47
treed1983f5303a6b0e5f08d1c28a01d11e0c727e97c
parent4062119b9d958df33bcda703dc3ac646908fa861
drm/amd/display: validate plane format on primary plane

In dce110, the plane configuration is such that plane 0
or the primary plane should be rendered with only RGB data.

This patch adds the validation to ensure that no video data
is rendered on plane 0.

Signed-off-by: Shirish S <shirish.s@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c