Ticket #8457: fix_vramBase_r1.diff

File fix_vramBase_r1.diff, 667 bytes (added by kallisti5, 11 years ago)

patch to fix vram base? revision 1

  • src/add-ons/accelerants/radeon_hd/gpu.cpp

    diff --git a/src/add-ons/accelerants/radeon_hd/gpu.cpp b/src/add-ons/accelerants/radeon_hd/gpu.cpp
    index 3e006b6..6396742 100644
    a b radeon_gpu_mc_init()  
    516516        gInfo->fb.valid = true;
    517517
    518518    // This is the card internal location.
    519     uint64 vramBase = 0;
    520 
    521     if ((info.chipsetFlags & CHIP_IGP) != 0) {
    522         vramBase = Read32(OUT, fbVMLocationReg) & 0xFFFF;
    523         vramBase <<= 24;
    524     }
     519    uint64 vramBase = Read32(OUT, fbVMLocationReg) & 0xFFFF;
     520    vramBase <<= 24;
    525521
    526522    gInfo->fb.vramStart = vramBase;
    527523    gInfo->fb.vramSize = gInfo->shared_info->frame_buffer_size * 1024;