"assumed" graphic card memory
Neil Skrypuch
ns03ja at brocku.ca
Wed Jul 12 16:19:14 CDT 2006
On Wednesday, July 12, 2006 16:26, Molle Bestefich wrote:
> Christoph Frick wrote:
> > within the dlls/wined3d/device.c there is a define for
> > the fake size of the graphic-card memory.
>
> Odd. Isn't it relatively easy to figure out?
>
> Perhaps something like:
>
> # ls -lS /sys/class/graphics/fb0/device/resource* | head -n1 | awk '{print
> $5}' 134217728
>
> or
>
> # ls -lS "/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/resource*"
>
> | head -n1 | awk '{print $5}'
>
> 134217728
>
> Does that work / is it correct for any card?
> Is the AGP aperture size also needed?
This reports the wrong values for me in one machine with a 32M video card:
neil at t40-n ~ $ ls -lS /sys/class/graphics/fb0/device/resource*
-rw------- 1 root root 134217728 Jul 12
17:12 /sys/class/graphics/fb0/device/resource0
-rw------- 1 root root 65536 Jul 12
17:12 /sys/class/graphics/fb0/device/resource2
-r--r--r-- 1 root root 4096 Jul 12
07:57 /sys/class/graphics/fb0/device/resource
-rw------- 1 root root 256 Jul 12
17:12 /sys/class/graphics/fb0/device/resource1
...and doesn't work at all in another:
neil at x2-42 ~ $ ls -lS /sys/class/graphics/fb0/device/resource*
ls: /sys/class/graphics/fb0/device/resource*: No such file or directory
- Neil
More information about the wine-devel
mailing list