Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185595
b: refs/heads/master
c: 8e36113
h: refs/heads/master
i:
  185593: 2be8442
  185591: cbd9d7d
v: v3
  • Loading branch information
Jerome Glisse authored and Dave Airlie committed Feb 22, 2010
1 parent 2e3b03c commit ea04408
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: f735261baab3a275a273533c391d2d1b86a9e66a
refs/heads/master: 8e36113082821980c60ce89a6c5d45fc9492fc26
7 changes: 6 additions & 1 deletion trunk/drivers/gpu/drm/radeon/r300.c
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,8 @@ int r300_gpu_reset(struct radeon_device *rdev)
*/
void r300_mc_init(struct radeon_device *rdev)
{
uint32_t tmp;
u64 base;
u32 tmp;

/* DDR for all card after R300 & IGP */
rdev->mc.vram_is_ddr = true;
Expand All @@ -474,6 +475,10 @@ void r300_mc_init(struct radeon_device *rdev)
default: rdev->mc.vram_width = 128; break;
}
r100_vram_init_sizes(rdev);
base = rdev->mc.aper_base;
if (rdev->flags & RADEON_IS_IGP)
base = (RREG32(RADEON_NB_TOM) & 0xffff) << 16;
radeon_vram_location(rdev, &rdev->mc, base);
if (!(rdev->flags & RADEON_IS_AGP))
radeon_gtt_location(rdev, &rdev->mc);
}
Expand Down

0 comments on commit ea04408

Please sign in to comment.