"assumed" graphic card memory

Carl Fongheiser carlfongheiser at gmail.com
Wed Jul 12 16:07:37 CDT 2006


On 7/12/06, Molle Bestefich <molle.bestefich at gmail.com> 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?



None of that is universally correct.  Not every system has an fb0 device,
and even on mine that do, there are no resource entries under
/sys/class/graphics/fb0/device.

Also, the PCI path varies a lot, too.  On one of my systems, it is found
here:

/sys/devices/pci0000:00/0000:00:0b.0/0000:01:00.0

and on another:

/sys/devices/pci0000:00/0000:00:1e.0/0000:04:00.0

None of this works at all on non-Linux systems, for that matter.  (Wine does
run on non-Linux systems, in case you didn't realize that.)

Carl Fongheiser
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20060712/4cb992ec/attachment.htm


More information about the wine-devel mailing list