[PATCH 094/120] drm/amd/display: Fix plane_atomic_check when no dc_state
Harry Wentland
harry.wentland at amd.com
Wed Aug 9 15:02:20 UTC 2017
Change-Id: Ibf013e09e2cdbc33fa0d732e7eda3c8e7111d974
Signed-off-by: Harry Wentland <harry.wentland at amd.com>
Reviewed-by: Andrey Grodzovsky <Andrey.Grodzovsky at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
---
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
index d271ccee3e09..b20ea5a945a4 100644
--- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
+++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c
@@ -3310,7 +3310,7 @@ int dm_plane_atomic_check(struct drm_plane *plane,
struct dm_plane_state *dm_plane_state = to_dm_plane_state(state);
if (!dm_plane_state->dc_state)
- return true;
+ return 0;
if (dc_validate_plane(dc, dm_plane_state->dc_state))
return 0;
--
2.11.0
More information about the amd-gfx
mailing list