diff options
author | Dave Airlie <airlied@linux.ie> | 2008-05-08 16:09:45 +1000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2008-05-08 16:09:45 +1000 |
commit | 576cba86b704c0de484ba852b8dce5b24d683f7e (patch) | |
tree | 6459399b1544dafadf05c10ff064619d81d34059 | |
parent | ed072ed075ec431b0746ac1aa8bad5f687d75d8c (diff) |
drm: fix replacefb to change fb properties
-rw-r--r-- | linux-core/drm_crtc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c index 60255f54..2d1c8064 100644 --- a/linux-core/drm_crtc.c +++ b/linux-core/drm_crtc.c @@ -2551,6 +2551,11 @@ int drm_mode_replacefb(struct drm_device *dev, if (fb->bo->type == drm_bo_type_kernel) DRM_ERROR("the bo should not be a kernel bo\n"); + fb->width = r->width; + fb->height = r->height; + fb->pitch = r->pitch; + fb->bits_per_pixel = r->bpp; + fb->depth = r->depth; fb->bo = bo; /* find all crtcs connected to this fb */ |