home *** CD-ROM | disk | FTP | other *** search
/ CyberMycha 2006 April / SGP.iso / dema / Keepsake-Demo-en-li-v1.0.exe / res / config / gldrivers.xml next >
Extensible Markup Language  |  2005-09-26  |  6KB  |  191 lines

  1. <?xml version="1.0" encoding="utf-8" ?> 
  2. <!--
  3.     How the GL driver database works:
  4.     
  5.     First, a set of configurations is specified in the <configs> section.
  6.     Each configuration has an associated name.
  7.     
  8.     Then, some rules are declared in the <rules> section. Rules consist of
  9.     severeral <conditions>, which can be:
  10.     - <regexp>: Match one of the GL strings against a regular expression.
  11.     - <comparever>: Compare the a version against a prefined value.
  12.     - <negate>: True if the contained rule(s) are false.
  13.     - <match>: True if the contained rule(s) are true.
  14.     <conditions> as well as <negate> and <match> are containers for conditions;
  15.     by default, they are true if all contained conditions are true. This 
  16.     behaviour can be changed by specifying the 'fulfill="one"' attribute. 
  17.     (You can also specify 'fulfill="all"', but that's just like the default.)
  18.     
  19.     If the <conditions> section evaluates to 'true', all the configurations 
  20.     from the <configs> section specified in the <applicable> sections (in 
  21.     <usecfg>...</usecfg> tags) are added to the global config tree; otherwise, 
  22.     the configurations specified in <notapplicable> are added.
  23.     
  24.     The rules are evaluated in the order they appear in the database.
  25.   -->
  26. <gldriverdb>
  27.   <configs>
  28.     <config name="brokenstencil">
  29.       <Video>
  30.     <OpenGL>
  31.       <BrokenStencil>true</BrokenStencil>
  32.     </OpenGL>
  33.       </Video>
  34.     </config>
  35.     <config name="novbo">
  36.       <Video>
  37.     <OpenGL>
  38.       <UseExtension>
  39.         <GL_ARB_vertex_buffer_object>no</GL_ARB_vertex_buffer_object>
  40.       </UseExtension>
  41.     </OpenGL>
  42.       </Video>
  43.     </config>
  44.     <config name="noavp">
  45.       <Video>
  46.     <OpenGL>
  47.       <UseExtension>
  48.         <GL_ARB_vertex_program>no</GL_ARB_vertex_program>
  49.       </UseExtension>
  50.     </OpenGL>
  51.       </Video>
  52.     </config>
  53.     <config name="noaps">
  54.       <Video>
  55.     <OpenGL>
  56.       <UseExtension>
  57.         <GL_ARB_point_sprite>no</GL_ARB_point_sprite>
  58.       </UseExtension>
  59.     </OpenGL>
  60.       </Video>
  61.     </config>
  62.     <config name="3dfxhacks">
  63.       <Video>
  64.     <OpenGL>
  65.       <UseExtension>
  66.         <GL_ARB_multitexture>no</GL_ARB_multitexture>
  67.       </UseExtension>
  68.       <Win32>
  69.         <DisableConsoleWindow>yes</DisableConsoleWindow>
  70.       </Win32>
  71.     </OpenGL>
  72.       </Video>
  73.     </config>
  74.     <config name="texturecompression">
  75.       <Video>
  76.     <OpenGL>
  77.       <TargetFormat>
  78.         <GL_RGB>compressed</GL_RGB>
  79.         <GL_RGBA>compressed</GL_RGBA>
  80.         <GL_RGB5_A1>compressed</GL_RGB5_A1>
  81.         <GL_RGBA8>compressed</GL_RGBA8>
  82.       </TargetFormat>
  83.     </OpenGL>
  84.       </Video>
  85.     </config>
  86.     <config name="softgl">
  87.       <Video>
  88.     <OpenGL>
  89.       <TextureFilter>none</TextureFilter>
  90.     </OpenGL>
  91.       </Video>
  92.     </config>
  93.     <config name="nostencil">
  94.       <Video>
  95.     <OpenGL>
  96.       <Caps>
  97.         <Stencil>no</Stencil>
  98.       </Caps>
  99.     </OpenGL>
  100.       </Video>
  101.     </config>
  102.   </configs>
  103.   <rules>
  104.     <!-- rule description="Some more examples">
  105.       <conditions>
  106.     <comparever version="gl" relation="ge 1.1" />
  107.     <comparever version="driver" relation="lt 6.34" />
  108.       </conditions>
  109.       <applicable>
  110.       </applicable>
  111.       <notapplicable>
  112.       </notapplicable>
  113.     </rule -->
  114.     <rule description="Broken stencil support">
  115.       <conditions fulfill="all">
  116.     <regexp string="platform" pattern="Unix" />
  117.     <regexp string="renderer" pattern="Rage128" />
  118.     <regexp string="glversion" pattern="1.2" />
  119.       </conditions>
  120.       <applicable>
  121.     <usecfg>brokenstencil</usecfg>
  122.       </applicable>
  123.     </rule>
  124.     <rule description="Disable VBO for Linux ATI drivers 3.2.8">
  125.       <conditions fulfill="all">
  126.     <regexp string="platform" pattern="Unix" />
  127.     <regexp string="vendor" pattern="^ATI" />
  128.     <regexp string="glversion" pattern="X4.3.0-3.2.8" />
  129.       </conditions>
  130.       <applicable>
  131.     <usecfg>novbo</usecfg>
  132.       </applicable>
  133.     </rule>
  134.     <rule description="Work around broken ATI point sprites">
  135.       <conditions>
  136.     <!-- Point sprite activation messes up all other geometry -->
  137.     <regexp string="vendor" pattern="^ATI" />
  138.       </conditions>
  139.       <applicable>
  140.     <usecfg>noaps</usecfg>
  141.       </applicable>
  142.     </rule>
  143.     <rule description="Work around 3dfx Voodoo shortcomings">
  144.       <conditions>
  145.     <regexp string="vendor" pattern="^3dfx" />
  146.       </conditions>
  147.       <applicable>
  148.     <usecfg>3dfxhacks</usecfg>
  149.       </applicable>
  150.     </rule>
  151.     <rule description="GeForce setting: Texture Compression">
  152.       <conditions>
  153.     <regexp string="renderer" pattern="^GeForce" />
  154.       </conditions>
  155.       <applicable>
  156.     <usecfg>texturecompression</usecfg>
  157.       </applicable>
  158.     </rule>
  159.     <rule description="ATI r300+ setting: Texture Compression">
  160.       <conditions>
  161.     <regexp string="renderer" pattern="^R\(ADEON\|adeon\) 9\(5\|6\|7\|8\)00" />
  162.       </conditions>
  163.       <applicable>
  164.     <usecfg>texturecompression</usecfg>
  165.       </applicable>
  166.     </rule>
  167.     <!--
  168.     <rule description="Software GL tweaks">
  169.       <conditions fulfill="one">
  170.     <regexp string="renderer" pattern="^Mesa" />
  171.     <regexp string="renderer" pattern="^GDI" />
  172.       </conditions>
  173.       <applicable>
  174.     <usecfg>softgl</usecfg>
  175.       </applicable>
  176.     </rule>
  177.     -->
  178.     <!--
  179.     <rule description="GeForce MX/Go class HW">
  180.       <conditions fulfill="one">
  181.     <regexp    string="renderer" pattern="^GeForce.*MX" />
  182.     <regexp    string="renderer" pattern="^GeForce.*Go" />
  183.       </conditions>
  184.       <applicable>
  185.     <usecfg>noavp</usecfg>
  186.       </applicable>
  187.     </rule>
  188.     -->
  189.   </rules>
  190. </gldriverdb>
  191.