Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180287
b: refs/heads/master
c: 5ff5571
h: refs/heads/master
i:
  180285: 7986965
  180283: 5754b1c
  180279: e992579
  180271: febb6b1
  180255: 8954718
  180223: d6ecfc0
v: v3
  • Loading branch information
Dave Airlie committed Feb 5, 2010
1 parent b37b519 commit a173cef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: a17538f93c16f0e15e35dc31eedad87e2d9c5c26
refs/heads/master: 5ff55717674470b96562f931f778c878080755b7
11 changes: 7 additions & 4 deletions trunk/drivers/gpu/drm/radeon/r300.c
Original file line number Diff line number Diff line change
Expand Up @@ -506,11 +506,14 @@ void r300_vram_info(struct radeon_device *rdev)

/* DDR for all card after R300 & IGP */
rdev->mc.vram_is_ddr = true;

tmp = RREG32(RADEON_MEM_CNTL);
if (tmp & R300_MEM_NUM_CHANNELS_MASK) {
rdev->mc.vram_width = 128;
} else {
rdev->mc.vram_width = 64;
tmp &= R300_MEM_NUM_CHANNELS_MASK;
switch (tmp) {
case 0: rdev->mc.vram_width = 64; break;
case 1: rdev->mc.vram_width = 128; break;
case 2: rdev->mc.vram_width = 256; break;
default: rdev->mc.vram_width = 128; break;
}

r100_vram_init_sizes(rdev);
Expand Down

0 comments on commit a173cef

Please sign in to comment.