<br><br><div><span class="gmail_quote">On 7/12/06, <b class="gmail_sendername">Molle Bestefich</b> &lt;<a href="mailto:molle.bestefich@gmail.com">molle.bestefich@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Christoph Frick wrote:<br>&gt; within the dlls/wined3d/device.c there is a define for<br>&gt; the fake size of the graphic-card memory.<br><br>Odd.&nbsp;&nbsp;Isn't it relatively easy to figure out?<br><br>Perhaps something like:<br>
<br># ls -lS /sys/class/graphics/fb0/device/resource* | head -n1 | awk '{print $5}'<br>134217728<br><br>or<br><br># ls -lS &quot;/sys/devices/pci0000:00/0000:00:01.0/0000:01:00.0/resource*&quot;<br>| head -n1 | awk '{print $5}'
<br>134217728<br><br>Does that work / is it correct for any card?<br>Is the AGP aperture size also needed?</blockquote><div><br><br>None of that is universally correct.&nbsp;  Not every system has an fb0 device, and even on mine that do, there are no resource entries under /sys/class/graphics/fb0/device.
<br><br>Also, the PCI path varies a lot, too.&nbsp; On one of my systems, it is found here:<br><br>/sys/devices/pci0000:00/0000:00:0b.0/0000:01:00.0<br><br>and on another:<br><br>/sys/devices/pci0000:00/0000:00:1e.0/0000:04:00.0
<br><br>None of this works at all on non-Linux systems, for that matter.&nbsp; (Wine does run on non-Linux systems, in case you didn't realize that.)<br><br>Carl Fongheiser<br><br></div><br></div><br>