aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_fb.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-01-14 10:54:40 -0500
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2015-03-20 08:30:19 -0400
commit5a35876e2830511cb8110667fc426c6a6165a593 (patch)
tree10b8c91d6b6f6b57f2c5ef25c6f9b788a84d1777 /drivers/gpu/drm/omapdrm/omap_fb.c
parent5dbe44336811a7e8ef4c958c6ac054772ee47637 (diff)
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>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_fb.c40
1 files changed, 0 insertions, 40 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c
index 2a5cacdc344b..45dd9eed9c57 100644
--- a/drivers/gpu/drm/omapdrm/omap_fb.c
+++ b/drivers/gpu/drm/omapdrm/omap_fb.c
@@ -121,18 +121,6 @@ static int omap_framebuffer_dirty(struct drm_framebuffer *fb,
121 struct drm_file *file_priv, unsigned flags, unsigned color, 121 struct drm_file *file_priv, unsigned flags, unsigned color,
122 struct drm_clip_rect *clips, unsigned num_clips) 122 struct drm_clip_rect *clips, unsigned num_clips)
123{ 123{
124 int i;
125
126 drm_modeset_lock_all(fb->dev);
127
128 for (i = 0; i < num_clips; i++) {
129 omap_framebuffer_flush(fb, clips[i].x1, clips[i].y1,
130 clips[i].x2 - clips[i].x1,
131 clips[i].y2 - clips[i].y1);
132 }
133
134 drm_modeset_unlock_all(fb->dev);
135
136 return 0; 124 return 0;
137} 125}
138 126
@@ -336,34 +324,6 @@ struct drm_connector *omap_framebuffer_get_next_connector(
336 return NULL; 324 return NULL;
337} 325}
338 326
339/* flush an area of the framebuffer (in case of manual update display that
340 * is not automatically flushed)
341 */
342void omap_framebuffer_flush(struct drm_framebuffer *fb,
343 int x, int y, int w, int h)
344{
345 struct drm_connector *connector = NULL;
346
347 VERB("flush: %d,%d %dx%d, fb=%p", x, y, w, h, fb);
348
349 /* FIXME: This is racy - no protection against modeset config changes. */
350 while ((connector = omap_framebuffer_get_next_connector(fb, connector))) {
351 /* only consider connectors that are part of a chain */
352 if (connector->encoder && connector->encoder->crtc) {
353 /* TODO: maybe this should propagate thru the crtc who
354 * could do the coordinate translation..
355 */
356 struct drm_crtc *crtc = connector->encoder->crtc;
357 int cx = max(0, x - crtc->x);
358 int cy = max(0, y - crtc->y);
359 int cw = w + (x - crtc->x) - cx;
360 int ch = h + (y - crtc->y) - cy;
361
362 omap_connector_flush(connector, cx, cy, cw, ch);
363 }
364 }
365}
366
367#ifdef CONFIG_DEBUG_FS 327#ifdef CONFIG_DEBUG_FS
368void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m) 328void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m)
369{ 329{