Skip to content

Modesetting: Correct coordinate info of dirty clips for front-buffer flushing

A clip should represent the area that is covering the current FB associated with the CRTC. So making sure each input rect covers any area in the FB is the first thing to do. If that is the case, the size and coordinates should be adjusted based on the partial area in the FB the each rect covers. The size elements need to be truncated if the rect's size exceeds FB's for the CRTC. Then offsets should be applied to coordinates if the CRTC's offsets aren't 0. And coordinate transposing and inversion are needed in case the rotated image is assigned to the FB.

Signed-off-by: Dongwon Kim dongwon.kim@intel.com

Merge request reports