aboutsummaryrefslogtreecommitdiffstats
path: root/include/drm/drm_crtc.h
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 /include/drm/drm_crtc.h
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 'include/drm/drm_crtc.h')
-rw-r--r--include/drm/drm_crtc.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h
index 42c89b201ffd..2deb6f99f950 100644
--- a/include/drm/drm_crtc.h
+++ b/include/drm/drm_crtc.h
@@ -239,7 +239,8 @@ struct drm_framebuffer {
239 struct list_head head; 239 struct list_head head;
240 struct drm_mode_object base; 240 struct drm_mode_object base;
241 const struct drm_framebuffer_funcs *funcs; 241 const struct drm_framebuffer_funcs *funcs;
242 unsigned int pitch; 242 unsigned int pitches[4];
243 unsigned int offsets[4];
243 unsigned int width; 244 unsigned int width;
244 unsigned int height; 245 unsigned int height;
245 /* depth can be 15 or 16 */ 246 /* depth can be 15 or 16 */