<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
@font-face
        {font-family:SimSun;
        panose-1:2 1 6 0 3 1 1 1 1 1;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:justify;
        text-justify:inter-ideograph;
        font-size:10.5pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.MsoPlainText, li.MsoPlainText, div.MsoPlainText
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
 /* Page Definitions */
 @page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 69.65pt 72.0pt 69.65pt;
        layout-grid:15.6pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=ZH-CN link=blue vlink=purple style='text-justify-trim:punctuation'>

<div class=Section1 style='layout-grid:15.6pt'>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Hi<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Here I just want to tell you that if a user uses an
old driver that we don&#8217;t support querying total memory will lead to
vidmem = 0, that is unexpected, so we should have a check.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>It doesn&#8217;t matter that the total memory is not
documented, as long as it can tell you the true value.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>And for the old card that doesn&#8217;t support
ATI_meminfo can still go the fall back path.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>I think the biggest benefit from using this extension
is that you don&#8217;t have to update the vidmem list for newly realeased ATI cards,
and you can get the correct amount of video memory for the same render string but
with different video memory (eg: HD4870 may have 1GB memory or only 512MB
memory)<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Regards<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Sunny<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>-----Original Message-----<br>
From: Stefan D�singer [mailto:stefandoesinger@gmx.at] <br>
Sent: Saturday, August 15, 2009 12:31 AM<br>
To: Sun, Sunny<br>
Cc: Roderick Colenbrander; wine-devel@winehq.org<br>
Subject: Re: about video memory detection in wine</span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Am Friday 14 August 2009 18:01:07 schrieb Sun, Sunny:<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>&gt; + &nbsp; &nbsp; &nbsp;
&nbsp;if(gl_info-&gt;vidmem &lt; 64 * 1024 * 1024)<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>&gt; + &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp;gl_info-&gt;vidmem = 64 * 1024 * 1024;<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>I guess the idea is that no ATI card that was ever
supported on fglrx has less <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>than 64 mb of memory? My old radeon 9000, which isn't
supported by fglrx <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>since years now has 64 MB. Does this hold true for
radeon 8500 cards too?<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>I think I'll use the guessed amount of vidmem in this
case instead of <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>hardcoding 64 MB.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>Using the undocumented value and the check for older
drivers which don't <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>support it is a bit hacky, but its a well-isolated
hack and avoids a lot of <o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'>problems, so it should be ok.<o:p></o:p></span></font></p>

<p class=MsoPlainText><font size=3 face="Times New Roman"><span lang=EN-US
style='font-size:12.0pt'><o:p>&nbsp;</o:p></span></font></p>

</div>

</body>

</html>