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>
This commit is contained in:

committed by
Dave Airlie

parent
935b597740
commit
01f2c7730e
@@ -2292,7 +2292,7 @@ int drm_mode_getfb(struct drm_device *dev,
|
||||
r->width = fb->width;
|
||||
r->depth = fb->depth;
|
||||
r->bpp = fb->bits_per_pixel;
|
||||
r->pitch = fb->pitch;
|
||||
r->pitch = fb->pitches[0];
|
||||
fb->funcs->create_handle(fb, file_priv, &r->handle);
|
||||
|
||||
out:
|
||||
|
Reference in New Issue
Block a user