From 7c89d968b5eeab98a9f4246d451954eda17081b0 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Fri, 2 Mar 2012 16:03:35 -0600 Subject: [PATCH] radeon_hd: Ensure vramBase is at 0. * This value is card internal framebuffer offset * 0 is the proper value, however it was causing issues for me * The mode setting issues I saw before are now gone, and this seems to make mode setting more stable now. --- src/add-ons/accelerants/radeon_hd/gpu.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/add-ons/accelerants/radeon_hd/gpu.cpp b/src/add-ons/accelerants/radeon_hd/gpu.cpp index 7d7a6137a5..e1080b364f 100644 --- a/src/add-ons/accelerants/radeon_hd/gpu.cpp +++ b/src/add-ons/accelerants/radeon_hd/gpu.cpp @@ -457,9 +457,8 @@ radeon_gpu_mc_init() if (gInfo->shared_info->frame_buffer_size > 0) gInfo->fb.valid = true; - // TODO: 0 should be correct here... but it gets me vertical stripes - //uint64 vramBase = 0; - uint64 vramBase = gInfo->shared_info->frame_buffer_phys; + // This is the card internal location. + uint64 vramBase = 0; if ((info.chipsetFlags & CHIP_IGP) != 0) { vramBase = Read32(OUT, fbVMLocationReg) & 0xFFFF;