summaryrefslogtreecommitdiff
path: root/linux-core/atombios_crtc.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2008-09-23 16:47:34 +1000
committerDave Airlie <airlied@redhat.com>2008-09-23 16:49:32 +1000
commit5fdfbee22acb8eaaa834457c30e6f68883ab1353 (patch)
tree0e9b12245edb3915e29a32fea8cfb5fcb806be87 /linux-core/atombios_crtc.c
parenta2216491c619082ad9a01bc949648834dc5a0d2f (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/atombios_crtc.c')
-rw-r--r--linux-core/atombios_crtc.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/linux-core/atombios_crtc.c b/linux-core/atombios_crtc.c
index cefe9225..16bcbe87 100644
--- a/linux-core/atombios_crtc.c
+++ b/linux-core/atombios_crtc.c
@@ -244,6 +244,7 @@ void atombios_crtc_set_base(struct drm_crtc *crtc, int x, int y)
struct drm_device *dev = crtc->dev;
struct drm_radeon_private *dev_priv = dev->dev_private;
struct radeon_framebuffer *radeon_fb;
+ struct drm_gem_object *obj;
struct drm_radeon_gem_object *obj_priv;
uint32_t fb_location, fb_format, fb_pitch_pixels;
@@ -252,7 +253,8 @@ void atombios_crtc_set_base(struct drm_crtc *crtc, int x, int y)
radeon_fb = to_radeon_framebuffer(crtc->fb);
- obj_priv = radeon_fb->obj->driver_private;
+ obj = radeon_fb->base.mm_private;
+ obj_priv = obj->driver_private;
fb_location = obj_priv->bo->offset + dev_priv->fb_location;