Rev 1268 | Rev 1321 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1268 | Rev 1313 | ||
---|---|---|---|
Line 391... | Line 391... | ||
391 | /* Try to put vram before or after AGP because we |
391 | /* Try to put vram before or after AGP because we |
392 | * we want SYSTEM_APERTURE to cover both VRAM and |
392 | * we want SYSTEM_APERTURE to cover both VRAM and |
393 | * AGP so that GPU can catch out of VRAM/AGP access |
393 | * AGP so that GPU can catch out of VRAM/AGP access |
394 | */ |
394 | */ |
395 | if (rdev->mc.gtt_location > rdev->mc.mc_vram_size) { |
395 | if (rdev->mc.gtt_location > rdev->mc.mc_vram_size) { |
396 | /* Enought place before */ |
396 | /* Enough place before */ |
397 | rdev->mc.vram_location = rdev->mc.gtt_location - |
397 | rdev->mc.vram_location = rdev->mc.gtt_location - |
398 | rdev->mc.mc_vram_size; |
398 | rdev->mc.mc_vram_size; |
399 | } else if (tmp > rdev->mc.mc_vram_size) { |
399 | } else if (tmp > rdev->mc.mc_vram_size) { |
400 | /* Enought place after */ |
400 | /* Enough place after */ |
401 | rdev->mc.vram_location = rdev->mc.gtt_location + |
401 | rdev->mc.vram_location = rdev->mc.gtt_location + |
402 | rdev->mc.gtt_size; |
402 | rdev->mc.gtt_size; |
403 | } else { |
403 | } else { |
404 | /* Try to setup VRAM then AGP might not |
404 | /* Try to setup VRAM then AGP might not |
405 | * not work on some card |
405 | * not work on some card |