OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b480399
)
radeon: fix accessible VRAM sizing
author
Dave Airlie
<airlied@redhat.com>
Sun, 2 Nov 2008 23:31:17 +0000
(09:31 +1000)
committer
Dave Airlie
<airlied@redhat.com>
Sun, 2 Nov 2008 23:31:17 +0000
(09:31 +1000)
linux-core/radeon_gem.c
patch
|
blob
|
history
diff --git
a/linux-core/radeon_gem.c
b/linux-core/radeon_gem.c
index
5e2ad98
..
5ecd8c5
100644
(file)
--- a/
linux-core/radeon_gem.c
+++ b/
linux-core/radeon_gem.c
@@
-585,6
+585,9
@@
void radeon_vram_setup(struct drm_device *dev)
if (accessible > bar_size)
accessible = bar_size;
+ if (accessible > vram)
+ accessible = vram;
+
DRM_INFO("Detected VRAM RAM=%dK, accessible=%uK, BAR=%uK\n",
vram, accessible, bar_size);