summaryrefslogtreecommitdiff
path: root/src/gallium/winsys/drm/radeon
diff options
context:
space:
mode:
authorCorbin Simpson <MostAwesomeDude@gmail.com>2010-01-17 15:57:26 -0800
committerCorbin Simpson <MostAwesomeDude@gmail.com>2010-01-18 01:13:33 -0800
commit11a2bbc3e96a5d72cc1473362c771ddebe0f9b8d (patch)
treee5e0d81975981bf027c92115c3751c11490a33d1 /src/gallium/winsys/drm/radeon
parent8311a49b2d4c34d17186d6d7e83307eb989a8260 (diff)
radeong: Use vram_size instead of vram_visible.
The kernel will decide on its own what to give us.
Diffstat (limited to 'src/gallium/winsys/drm/radeon')
-rw-r--r--src/gallium/winsys/drm/radeon/core/radeon_drm.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/winsys/drm/radeon/core/radeon_drm.c b/src/gallium/winsys/drm/radeon/core/radeon_drm.c
index dd73b33ee0..017d1bea1a 100644
--- a/src/gallium/winsys/drm/radeon/core/radeon_drm.c
+++ b/src/gallium/winsys/drm/radeon/core/radeon_drm.c
@@ -55,8 +55,8 @@ static void do_ioctls(int fd, struct radeon_winsys* winsys)
*
* The GEM info is actually bogus on the kernel side, as well as our side
* (see radeon_gem_info_ioctl in radeon_gem.c) but that's alright because
- * we don't actually use the info for anything yet.
- * XXX update the above when we can safely use vram_size instead of vram_visible */
+ * we don't actually use the info for anything yet. */
+
info.request = RADEON_INFO_DEVICE_ID;
retval = drmCommandWriteRead(fd, DRM_RADEON_INFO, &info, sizeof(info));
if (retval) {
@@ -92,8 +92,7 @@ static void do_ioctls(int fd, struct radeon_winsys* winsys)
exit(1);
}
winsys->gart_size = gem_info.gart_size;
- /* XXX */
- winsys->vram_size = gem_info.vram_visible;
+ winsys->vram_size = gem_info.vram_size;
}
/* Guess at whether this chipset should use r300g.