diff --git a/shared-core/radeon_cp.c b/shared-core/radeon_cp.c index 695b5ec..ef9d828 100644 --- a/shared-core/radeon_cp.c +++ b/shared-core/radeon_cp.c @@ -1531,8 +1531,8 @@ #endif dev_priv->fb_location = (RADEON_READ(RADEON_MC_FB_LOCATION) & 0xffff) << 16; dev_priv->fb_size = - ((RADEON_READ(RADEON_MC_FB_LOCATION) & 0xffff0000u) + 0x10000) - - dev_priv->fb_location; + (RADEON_READ(RADEON_MC_FB_LOCATION) & 0xffff0000u) + - dev_priv->fb_location + 0x10000; dev_priv->front_pitch_offset = (((dev_priv->front_pitch / 64) << 22) | ((dev_priv->front_offset