diff options
author | Aurabindo Pillai <[email protected]> | 2020-06-04 15:54:39 -0400 |
---|---|---|
committer | Alex Deucher <[email protected]> | 2020-07-01 01:59:25 -0400 |
commit | 8c44515be175a1bc18620284d23efa385daea49f (patch) | |
tree | 83e1a284a6b77cd99ea9ee23636edb079f063c20 /drivers/gpu/drm/amd/amdgpu/amdgpu_object.c | |
parent | f822406cb186b8018554f167fecae43043a90359 (diff) |
drm/amd/display: clip plane rects in DM before passing into DC
[Why]
DC global validation can fail when userspace requests to draw large
plane without performing the clipping themselves.
This is observed in the IGT kms_plane panning tests for 4K displays
where they draw an 8K plane without any clipping while expecting only
the top 4K to be drawn.
[How]
DRM already has helpers to take care of the clipping necessary and to
mark whether a plane is visible or not, so make use of these helpers
in DM before passing the plane to DC.
Signed-off-by: Aurabindo Pillai <[email protected]>
Reviewed-by: Nicholas Kazlauskas <[email protected]>
Acked-by: Rodrigo Siqueira <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_object.c')
0 files changed, 0 insertions, 0 deletions