aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2011-12-19 17:06:49 -0500
committerDave Airlie <airlied@redhat.com>2011-12-20 05:06:27 -0500
commit01f2c7730e188077026c5f766f85f329c7000c54 (patch)
tree1b7ad10bd70c25ccaefa2a03aeedaeb20ac2c336 /drivers/gpu/drm/drm_crtc.c
parent935b59774012d11e3012c909cdd0c3cba0adf219 (diff)
drm: Replace pitch with pitches[] in drm_framebuffer
Otherwise each driver would need to keep the information inside their own framebuffer object structure. Also add offsets[]. BOs on the other hand are driver specific, so those can be kept in driver specific structures. Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_crtc.c')
-rw-r--r--drivers/gpu/drm/drm_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 07d78e27ec3..0d1faa72e1f 100644
--- a/drivers/gpu/drm/drm_crtc.c
+++ b/drivers/gpu/drm/drm_crtc.c
@@ -2292,7 +2292,7 @@ int drm_mode_getfb(struct drm_device *dev,
2292 r->width = fb->width; 2292 r->width = fb->width;
2293 r->depth = fb->depth; 2293 r->depth = fb->depth;
2294 r->bpp = fb->bits_per_pixel; 2294 r->bpp = fb->bits_per_pixel;
2295 r->pitch = fb->pitch; 2295 r->pitch = fb->pitches[0];
2296 fb->funcs->create_handle(fb, file_priv, &r->handle); 2296 fb->funcs->create_handle(fb, file_priv, &r->handle);
2297 2297
2298out: 2298out: