summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
authorDavid Airlie <airlied@asimov.stargames.com.au>2007-04-11 17:13:45 +1000
committerDavid Airlie <airlied@asimov.stargames.com.au>2007-04-11 17:13:45 +1000
commita6cc6a778f8b2f86300a8ce87441d044fd67f930 (patch)
tree22bec4c9765ac635e363a072e2587c7fd8b3ce80 /linux-core
parentc582eaac194411f52a2c0527ffa093b5a422d7b9 (diff)
add support for setting a framebuffer depth
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_crtc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c
index 83f8e167..1c1c3006 100644
--- a/linux-core/drm_crtc.c
+++ b/linux-core/drm_crtc.c
@@ -1003,12 +1003,13 @@ int drm_mode_addfb(struct inode *inode, struct file *filp,
if(!fb)
return -EINVAL;;
- fb->width = r.width;
- fb->height = r.height;
- fb->pitch = r.pitch;
+ fb->width = r.width;
+ fb->height = r.height;
+ fb->pitch = r.pitch;
fb->bits_per_pixel = r.bpp;
- fb->offset = bo->offset;
- fb->bo = bo;
+ fb->depth = r.depth;
+ fb->offset = bo->offset;
+ fb->bo = bo;
r.buffer_id = fb->id;