diff options
author | Dave Airlie <airlied@redhat.com> | 2008-11-10 15:13:08 +1000 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2008-11-10 15:13:08 +1000 |
commit | 31b0c4cd20d0eb843268a6307b7c32dbc07e42a0 (patch) | |
tree | 70b82ef63127eee660d24d87bf306b081b643836 /linux-core/radeon_gem.c | |
parent | 7abb8416a7fd8d69f1f2317cdac2baa8e640671e (diff) |
radeon: fixup vram visible calculation to take a/c pinned objects for now
Diffstat (limited to 'linux-core/radeon_gem.c')
-rw-r--r-- | linux-core/radeon_gem.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-core/radeon_gem.c b/linux-core/radeon_gem.c index 2e20de3c..85185232 100644 --- a/linux-core/radeon_gem.c +++ b/linux-core/radeon_gem.c @@ -586,6 +586,9 @@ static int radeon_gart_init(struct drm_device *dev) if (ret) return -EINVAL; + /* subtract from VRAM value reporting to userspace */ + dev_priv->mm.vram_visible -= RADEON_PCIGART_TABLE_SIZE; + dev_priv->mm.pcie_table_backup = kzalloc(RADEON_PCIGART_TABLE_SIZE, GFP_KERNEL); if (!dev_priv->mm.pcie_table_backup) return -EINVAL; |