diff options
author | Dave Airlie <airlied@redhat.com> | 2010-03-30 01:34:13 -0400 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-04-06 20:21:03 -0400 |
commit | 386516744ba45d50f42c6999151cc210cb4f96e4 (patch) | |
tree | 88e3b6aeb83040a8bd512eb7aad087e6c0fcd556 /drivers/gpu/drm/radeon/radeon_gem.c | |
parent | 643acacf02679befd0f98ac3c5fecb805f1c9548 (diff) |
drm/fb: fix fbdev object model + cleanup properly.
The fbdev layer in the kms code should act like a consumer of the kms services and avoid having relying on information being store in the kms core structures in order for it to work.
This patch
a) removes the info pointer/psuedo palette from the core drm_framebuffer structure and moves it to the fbdev helper layer, it also removes the core drm keeping a list of kernel kms fbdevs.
b) migrated all the fb helper functions out of the crtc helper file into the fb helper file.
c) pushed the fb probing/hotplug control into the driver
d) makes the surface sizes into a structure for ease of passing
This changes the intel/radeon/nouveau drivers to use the new helper.
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_gem.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_gem.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_gem.c b/drivers/gpu/drm/radeon/radeon_gem.c index ef92d147d8f0..28dd3e1b9c3a 100644 --- a/drivers/gpu/drm/radeon/radeon_gem.c +++ b/drivers/gpu/drm/radeon/radeon_gem.c | |||
@@ -158,8 +158,7 @@ int radeon_gem_info_ioctl(struct drm_device *dev, void *data, | |||
158 | args->vram_visible = rdev->mc.real_vram_size; | 158 | args->vram_visible = rdev->mc.real_vram_size; |
159 | if (rdev->stollen_vga_memory) | 159 | if (rdev->stollen_vga_memory) |
160 | args->vram_visible -= radeon_bo_size(rdev->stollen_vga_memory); | 160 | args->vram_visible -= radeon_bo_size(rdev->stollen_vga_memory); |
161 | if (rdev->fbdev_rbo) | 161 | args->vram_visible -= radeon_fbdev_total_size(rdev); |
162 | args->vram_visible -= radeon_bo_size(rdev->fbdev_rbo); | ||
163 | args->gart_size = rdev->mc.gtt_size - rdev->cp.ring_size - 4096 - | 162 | args->gart_size = rdev->mc.gtt_size - rdev->cp.ring_size - 4096 - |
164 | RADEON_IB_POOL_SIZE*64*1024; | 163 | RADEON_IB_POOL_SIZE*64*1024; |
165 | return 0; | 164 | return 0; |