diff options
author | Kristian Høgsberg <krh@redhat.com> | 2008-09-23 16:47:34 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-09-23 16:49:32 +1000 |
commit | 5fdfbee22acb8eaaa834457c30e6f68883ab1353 (patch) | |
tree | 0e9b12245edb3915e29a32fea8cfb5fcb806be87 /linux-core/drm_crtc.c | |
parent | a2216491c619082ad9a01bc949648834dc5a0d2f (diff) |
Store the buffer object backing the fb as a void pointer, not a handle.
This lets us defer handle creation until userspace acutally asks for
one, at which point we also have a drm_file to associate it with.
Diffstat (limited to 'linux-core/drm_crtc.c')
-rw-r--r-- | linux-core/drm_crtc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-core/drm_crtc.c b/linux-core/drm_crtc.c index aa6749d6..2fefd1d2 100644 --- a/linux-core/drm_crtc.c +++ b/linux-core/drm_crtc.c @@ -1631,8 +1631,8 @@ int drm_mode_getfb(struct drm_device *dev, r->width = fb->width; r->depth = fb->depth; r->bpp = fb->bits_per_pixel; - r->handle = fb->mm_handle; r->pitch = fb->pitch; + fb->funcs->create_handle(fb, file_priv, &r->handle); out: mutex_unlock(&dev->mode_config.mutex); |