mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
drm: omapdrm: Remove manual update display support
All the manual update display code implements eventually ends up to just calls to omap_connector_flush(), currently implemented as an empty TODO stub. Remove it, the code can always be revived and implemented later if interest in manual update displays becomes a reality. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
5dbe443368
commit
5a35876e28
5 changed files with 4 additions and 115 deletions
|
@ -121,18 +121,6 @@ static int omap_framebuffer_dirty(struct drm_framebuffer *fb,
|
|||
struct drm_file *file_priv, unsigned flags, unsigned color,
|
||||
struct drm_clip_rect *clips, unsigned num_clips)
|
||||
{
|
||||
int i;
|
||||
|
||||
drm_modeset_lock_all(fb->dev);
|
||||
|
||||
for (i = 0; i < num_clips; i++) {
|
||||
omap_framebuffer_flush(fb, clips[i].x1, clips[i].y1,
|
||||
clips[i].x2 - clips[i].x1,
|
||||
clips[i].y2 - clips[i].y1);
|
||||
}
|
||||
|
||||
drm_modeset_unlock_all(fb->dev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -336,34 +324,6 @@ struct drm_connector *omap_framebuffer_get_next_connector(
|
|||
return NULL;
|
||||
}
|
||||
|
||||
/* flush an area of the framebuffer (in case of manual update display that
|
||||
* is not automatically flushed)
|
||||
*/
|
||||
void omap_framebuffer_flush(struct drm_framebuffer *fb,
|
||||
int x, int y, int w, int h)
|
||||
{
|
||||
struct drm_connector *connector = NULL;
|
||||
|
||||
VERB("flush: %d,%d %dx%d, fb=%p", x, y, w, h, fb);
|
||||
|
||||
/* FIXME: This is racy - no protection against modeset config changes. */
|
||||
while ((connector = omap_framebuffer_get_next_connector(fb, connector))) {
|
||||
/* only consider connectors that are part of a chain */
|
||||
if (connector->encoder && connector->encoder->crtc) {
|
||||
/* TODO: maybe this should propagate thru the crtc who
|
||||
* could do the coordinate translation..
|
||||
*/
|
||||
struct drm_crtc *crtc = connector->encoder->crtc;
|
||||
int cx = max(0, x - crtc->x);
|
||||
int cy = max(0, y - crtc->y);
|
||||
int cw = w + (x - crtc->x) - cx;
|
||||
int ch = h + (y - crtc->y) - cy;
|
||||
|
||||
omap_connector_flush(connector, cx, cy, cw, ch);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef CONFIG_DEBUG_FS
|
||||
void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue