diff options
author | Daniel Stone <daniels@collabora.com> | 2018-03-30 17:11:34 +0300 |
---|---|---|
committer | Daniel Stone <daniels@collabora.com> | 2018-05-18 16:52:48 +0300 |
commit | bc61c97502e26af1be54022883d14ee0c03379fc (patch) | |
tree | 16dc63e8167116e484c04e13fd50977402903f44 /drivers/gpu/drm/gma500/accel_2d.c | |
parent | ecb8a947855c9658cd0382f3cab39f91a7ebe86a (diff) | |
download | linux-bc61c97502e26af1be54022883d14ee0c03379fc.tar.xz |
drm/gma500: Move GEM BO to drm_framebuffer
Since drm_framebuffer can now store GEM objects directly, place them
there rather than in our own subclass. As this makes the framebuffer
create_handle and destroy functions the same as the GEM framebuffer
helper, we can reuse those.
Signed-off-by: Daniel Stone <daniels@collabora.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Cc: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180330141138.28987-20-daniels@collabora.com
Diffstat (limited to 'drivers/gpu/drm/gma500/accel_2d.c')
-rw-r--r-- | drivers/gpu/drm/gma500/accel_2d.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/gma500/accel_2d.c b/drivers/gpu/drm/gma500/accel_2d.c index c51d9259c7a7..204c8e452eb7 100644 --- a/drivers/gpu/drm/gma500/accel_2d.c +++ b/drivers/gpu/drm/gma500/accel_2d.c @@ -251,7 +251,7 @@ static void psbfb_copyarea_accel(struct fb_info *info, if (!fb) return; - offset = psbfb->gtt->offset; + offset = to_gtt_range(fb->obj[0])->offset; stride = fb->pitches[0]; switch (fb->format->depth) { |