diff options
author | Dave Airlie <airlied@redhat.com> | 2010-02-24 22:44:04 -0500 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2010-02-26 01:23:23 -0500 |
commit | eb6b6d7cdd5548fa03a919d14615195600013be2 (patch) | |
tree | c499472ef28a903f94b09da9a24f66b021412813 /drivers/gpu/drm/radeon/radeon_fb.c | |
parent | 30d6c72c4a760cfc9069ee100786e4d6cf6de59d (diff) | |
parent | 383be5d1789d9a7a2e77dca1cb0aca89507d069e (diff) |
Merge remote branch 'korg/drm-radeon-testing' into drm-next-stage
* korg/drm-radeon-testing: (62 commits)
drm/radeon/kms: update new pll algo
drm/radeon/kms: add support for square microtiles on r3xx-r5xx
drm/radeon/kms: force pinning buffer into visible VRAM
drm/radeon/kms/evergreen: fix typo in cursor code
drm/radeon/kms: implement reading active PCIE lanes on R600+
drm/radeon/kms: for downclocking non-mobility check PERFORMANCE state
drm/radeon/kms: simplify storing current and requested PM mode
drm/radeon: fixes for r6xx/r7xx gfx init
drm/radeon/rv740: fix backend setup
drm/radeon/kms: fix R3XX/R4XX memory controller initialization
[rfc] drm/radeon/kms: pm debugging check for vbl.
drm/radeon: Fix memory allocation failures in the preKMS command stream checking.
drm: Add generic multipart buffer.
drm/radeon/kms: simplify memory controller setup V2
drm/radeon: Add asic hook for dma copy to r200 cards.
drm/radeon/kms: Create asic structure for r300 pcie cards.
drm/radeon/kms: remove unused r600_gart_clear_page
drm/radeon/kms: remove HDP flushes from fence emit (v2)
drm/radeon/kms: add LVDS pll quirk for Dell Studio 15
drm/radeon/kms: simplify picking power state
...
Conflicts:
drivers/gpu/drm/radeon/atom.c
drivers/gpu/drm/radeon/atombios.h
drivers/gpu/drm/radeon/atombios_dp.c
drivers/gpu/drm/radeon/r600.c
drivers/gpu/drm/radeon/r600_audio.c
drivers/gpu/drm/radeon/r600_cp.c
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_connectors.c
drivers/gpu/drm/radeon/radeon_ring.c
drivers/gpu/drm/radeon/rv770.c
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_fb.c')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_fb.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_fb.c b/drivers/gpu/drm/radeon/radeon_fb.c index d71e346e9ab5..cda112cc7a6c 100644 --- a/drivers/gpu/drm/radeon/radeon_fb.c +++ b/drivers/gpu/drm/radeon/radeon_fb.c | |||
@@ -148,7 +148,6 @@ int radeonfb_create(struct drm_device *dev, | |||
148 | unsigned long tmp; | 148 | unsigned long tmp; |
149 | bool fb_tiled = false; /* useful for testing */ | 149 | bool fb_tiled = false; /* useful for testing */ |
150 | u32 tiling_flags = 0; | 150 | u32 tiling_flags = 0; |
151 | int crtc_count; | ||
152 | 151 | ||
153 | mode_cmd.width = surface_width; | 152 | mode_cmd.width = surface_width; |
154 | mode_cmd.height = surface_height; | 153 | mode_cmd.height = surface_height; |
@@ -239,11 +238,7 @@ int radeonfb_create(struct drm_device *dev, | |||
239 | rfbdev = info->par; | 238 | rfbdev = info->par; |
240 | rfbdev->helper.funcs = &radeon_fb_helper_funcs; | 239 | rfbdev->helper.funcs = &radeon_fb_helper_funcs; |
241 | rfbdev->helper.dev = dev; | 240 | rfbdev->helper.dev = dev; |
242 | if (rdev->flags & RADEON_SINGLE_CRTC) | 241 | ret = drm_fb_helper_init_crtc_count(&rfbdev->helper, rdev->num_crtc, |
243 | crtc_count = 1; | ||
244 | else | ||
245 | crtc_count = 2; | ||
246 | ret = drm_fb_helper_init_crtc_count(&rfbdev->helper, crtc_count, | ||
247 | RADEONFB_CONN_LIMIT); | 242 | RADEONFB_CONN_LIMIT); |
248 | if (ret) | 243 | if (ret) |
249 | goto out_unref; | 244 | goto out_unref; |
@@ -257,7 +252,7 @@ int radeonfb_create(struct drm_device *dev, | |||
257 | info->flags = FBINFO_DEFAULT; | 252 | info->flags = FBINFO_DEFAULT; |
258 | info->fbops = &radeonfb_ops; | 253 | info->fbops = &radeonfb_ops; |
259 | 254 | ||
260 | tmp = fb_gpuaddr - rdev->mc.vram_location; | 255 | tmp = fb_gpuaddr - rdev->mc.vram_start; |
261 | info->fix.smem_start = rdev->mc.aper_base + tmp; | 256 | info->fix.smem_start = rdev->mc.aper_base + tmp; |
262 | info->fix.smem_len = size; | 257 | info->fix.smem_len = size; |
263 | info->screen_base = fbptr; | 258 | info->screen_base = fbptr; |