projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed072ed
)
drm: fix replacefb to change fb properties
author
Dave Airlie
<airlied@linux.ie>
Thu, 8 May 2008 06:09:45 +0000
(16:09 +1000)
committer
Dave Airlie
<airlied@linux.ie>
Thu, 8 May 2008 06:09:45 +0000
(16:09 +1000)
linux-core/drm_crtc.c
patch
|
blob
|
history
diff --git
a/linux-core/drm_crtc.c
b/linux-core/drm_crtc.c
index
60255f5
..
2d1c806
100644
(file)
--- 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 */