Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. /***********************************************************************
  2.  ***        THIS FILE IS GENERATED AUTOMATICALLY. DON'T EDIT!        ***
  3.  ***********************************************************************/
  4. /*
  5.  * XML DRI client-side driver configuration
  6.  * Copyright (C) 2003 Felix Kuehling
  7.  *
  8.  * Permission is hereby granted, free of charge, to any person obtaining a
  9.  * copy of this software and associated documentation files (the "Software"),
  10.  * to deal in the Software without restriction, including without limitation
  11.  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
  12.  * and/or sell copies of the Software, and to permit persons to whom the
  13.  * Software is furnished to do so, subject to the following conditions:
  14.  *
  15.  * The above copyright notice and this permission notice shall be included
  16.  * in all copies or substantial portions of the Software.
  17.  *
  18.  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  19.  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  20.  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
  21.  * FELIX KUEHLING, OR ANY OTHER CONTRIBUTORS BE LIABLE FOR ANY CLAIM,
  22.  * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
  23.  * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE
  24.  * OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  25.  *
  26.  */
  27. /**
  28.  * \file t_options.h
  29.  * \brief Templates of common options
  30.  * \author Felix Kuehling
  31.  *
  32.  * This file defines macros for common options that can be used to
  33.  * construct driConfigOptions in the drivers. This file is only a
  34.  * template containing English descriptions for options wrapped in
  35.  * gettext(). xgettext can be used to extract translatable
  36.  * strings. These strings can then be translated by anyone familiar
  37.  * with GNU gettext. gen_xmlpool.py takes this template and fills in
  38.  * all the translations. The result (options.h) is included by
  39.  * xmlpool.h which in turn can be included by drivers.
  40.  *
  41.  * The macros used to describe otions in this file are defined in
  42.  * ../xmlpool.h.
  43.  */
  44.  
  45. /* This is needed for xgettext to extract translatable strings.
  46.  * gen_xmlpool.py will discard this line. */
  47. /* #include <libintl.h>
  48.  * commented out by gen_xmlpool.py */
  49.  
  50. /*
  51.  * predefined option sections and options with multi-lingual descriptions
  52.  */
  53.  
  54.  
  55. /**
  56.  * \brief Debugging options
  57.  */
  58. #define DRI_CONF_SECTION_DEBUG \
  59. DRI_CONF_SECTION_BEGIN \
  60.         DRI_CONF_DESC(en,"Debugging")
  61.  
  62. #define DRI_CONF_NO_RAST(def) \
  63. DRI_CONF_OPT_BEGIN_B(no_rast, def) \
  64.         DRI_CONF_DESC(en,"Disable 3D acceleration") \
  65. DRI_CONF_OPT_END
  66.  
  67. #define DRI_CONF_PERFORMANCE_BOXES(def) \
  68. DRI_CONF_OPT_BEGIN_B(performance_boxes, def) \
  69.         DRI_CONF_DESC(en,"Show performance boxes") \
  70. DRI_CONF_OPT_END
  71.  
  72. #define DRI_CONF_ALWAYS_FLUSH_BATCH(def) \
  73. DRI_CONF_OPT_BEGIN_B(always_flush_batch, def) \
  74.         DRI_CONF_DESC(en,"Enable flushing batchbuffer after each draw call") \
  75. DRI_CONF_OPT_END
  76.  
  77. #define DRI_CONF_ALWAYS_FLUSH_CACHE(def) \
  78. DRI_CONF_OPT_BEGIN_B(always_flush_cache, def) \
  79.         DRI_CONF_DESC(en,"Enable flushing GPU caches with each draw call") \
  80. DRI_CONF_OPT_END
  81.  
  82. #define DRI_CONF_DISABLE_THROTTLING(def) \
  83. DRI_CONF_OPT_BEGIN_B(disable_throttling, def) \
  84.         DRI_CONF_DESC(en,"Disable throttling on first batch after flush") \
  85. DRI_CONF_OPT_END
  86.  
  87. #define DRI_CONF_FORCE_GLSL_EXTENSIONS_WARN(def) \
  88. DRI_CONF_OPT_BEGIN_B(force_glsl_extensions_warn, def) \
  89.         DRI_CONF_DESC(en,"Force GLSL extension default behavior to 'warn'") \
  90. DRI_CONF_OPT_END
  91.  
  92. #define DRI_CONF_DISABLE_BLEND_FUNC_EXTENDED(def) \
  93. DRI_CONF_OPT_BEGIN_B(disable_blend_func_extended, def) \
  94.         DRI_CONF_DESC(en,"Disable dual source blending") \
  95. DRI_CONF_OPT_END
  96.  
  97. #define DRI_CONF_DISABLE_GLSL_LINE_CONTINUATIONS(def) \
  98. DRI_CONF_OPT_BEGIN_B(disable_glsl_line_continuations, def) \
  99.         DRI_CONF_DESC(en,"Disable backslash-based line continuations in GLSL source") \
  100. DRI_CONF_OPT_END
  101.  
  102. #define DRI_CONF_DISABLE_SHADER_BIT_ENCODING(def) \
  103. DRI_CONF_OPT_BEGIN_B(disable_shader_bit_encoding, def) \
  104.         DRI_CONF_DESC(en,"Disable GL_ARB_shader_bit_encoding") \
  105. DRI_CONF_OPT_END
  106.  
  107. #define DRI_CONF_FORCE_GLSL_VERSION(def) \
  108. DRI_CONF_OPT_BEGIN_V(force_glsl_version, int, def, "0:999") \
  109.         DRI_CONF_DESC(en,"Force a default GLSL version for shaders that lack an explicit #version line") \
  110. DRI_CONF_OPT_END
  111.  
  112.  
  113.  
  114. /**
  115.  * \brief Image quality-related options
  116.  */
  117. #define DRI_CONF_SECTION_QUALITY \
  118. DRI_CONF_SECTION_BEGIN \
  119.         DRI_CONF_DESC(en,"Image Quality")
  120.  
  121. #define DRI_CONF_EXCESS_MIPMAP(def) \
  122. DRI_CONF_OPT_BEGIN_B(excess_mipmap, def) \
  123.         DRI_CONF_DESC(en,"Enable extra mipmap level") \
  124. DRI_CONF_OPT_END
  125.  
  126. #define DRI_CONF_TEXTURE_DEPTH_FB       0
  127. #define DRI_CONF_TEXTURE_DEPTH_32       1
  128. #define DRI_CONF_TEXTURE_DEPTH_16       2
  129. #define DRI_CONF_TEXTURE_DEPTH_FORCE_16 3
  130. #define DRI_CONF_TEXTURE_DEPTH(def) \
  131. DRI_CONF_OPT_BEGIN_V(texture_depth,enum,def,"0:3") \
  132.         DRI_CONF_DESC_BEGIN(en,"Texture color depth") \
  133.                 DRI_CONF_ENUM(0,"Prefer frame buffer color depth") \
  134.                 DRI_CONF_ENUM(1,"Prefer 32 bits per texel") \
  135.                 DRI_CONF_ENUM(2,"Prefer 16 bits per texel") \
  136.                 DRI_CONF_ENUM(3,"Force 16 bits per texel") \
  137.         DRI_CONF_DESC_END \
  138. DRI_CONF_OPT_END
  139.  
  140. #define DRI_CONF_DEF_MAX_ANISOTROPY(def,range) \
  141. DRI_CONF_OPT_BEGIN_V(def_max_anisotropy,float,def,range) \
  142.         DRI_CONF_DESC(en,"Initial maximum value for anisotropic texture filtering") \
  143. DRI_CONF_OPT_END
  144.  
  145. #define DRI_CONF_NO_NEG_LOD_BIAS(def) \
  146. DRI_CONF_OPT_BEGIN_B(no_neg_lod_bias, def) \
  147.         DRI_CONF_DESC(en,"Forbid negative texture LOD bias") \
  148. DRI_CONF_OPT_END
  149.  
  150. #define DRI_CONF_FORCE_S3TC_ENABLE(def) \
  151. DRI_CONF_OPT_BEGIN_B(force_s3tc_enable, def) \
  152.         DRI_CONF_DESC(en,"Enable S3TC texture compression even if software support is not available") \
  153. DRI_CONF_OPT_END
  154.  
  155. #define DRI_CONF_COLOR_REDUCTION_ROUND 0
  156. #define DRI_CONF_COLOR_REDUCTION_DITHER 1
  157. #define DRI_CONF_COLOR_REDUCTION(def) \
  158. DRI_CONF_OPT_BEGIN_V(color_reduction,enum,def,"0:1") \
  159.         DRI_CONF_DESC_BEGIN(en,"Initial color reduction method") \
  160.                 DRI_CONF_ENUM(0,"Round colors") \
  161.                 DRI_CONF_ENUM(1,"Dither colors") \
  162.         DRI_CONF_DESC_END \
  163. DRI_CONF_OPT_END
  164.  
  165. #define DRI_CONF_ROUND_TRUNC 0
  166. #define DRI_CONF_ROUND_ROUND 1
  167. #define DRI_CONF_ROUND_MODE(def) \
  168. DRI_CONF_OPT_BEGIN_V(round_mode,enum,def,"0:1") \
  169.         DRI_CONF_DESC_BEGIN(en,"Color rounding method") \
  170.                 DRI_CONF_ENUM(0,"Round color components downward") \
  171.                 DRI_CONF_ENUM(1,"Round to nearest color") \
  172.         DRI_CONF_DESC_END \
  173. DRI_CONF_OPT_END
  174.  
  175. #define DRI_CONF_DITHER_XERRORDIFF 0
  176. #define DRI_CONF_DITHER_XERRORDIFFRESET 1
  177. #define DRI_CONF_DITHER_ORDERED 2
  178. #define DRI_CONF_DITHER_MODE(def) \
  179. DRI_CONF_OPT_BEGIN_V(dither_mode,enum,def,"0:2") \
  180.         DRI_CONF_DESC_BEGIN(en,"Color dithering method") \
  181.                 DRI_CONF_ENUM(0,"Horizontal error diffusion") \
  182.                 DRI_CONF_ENUM(1,"Horizontal error diffusion, reset error at line start") \
  183.                 DRI_CONF_ENUM(2,"Ordered 2D color dithering") \
  184.         DRI_CONF_DESC_END \
  185. DRI_CONF_OPT_END
  186.  
  187. #define DRI_CONF_FLOAT_DEPTH(def) \
  188. DRI_CONF_OPT_BEGIN_B(float_depth, def) \
  189.         DRI_CONF_DESC(en,"Floating point depth buffer") \
  190. DRI_CONF_OPT_END
  191.  
  192. #define DRI_CONF_PP_CELSHADE(def) \
  193. DRI_CONF_OPT_BEGIN_V(pp_celshade,enum,def,"0:1") \
  194.         DRI_CONF_DESC(en,"A post-processing filter to cel-shade the output") \
  195. DRI_CONF_OPT_END
  196.  
  197. #define DRI_CONF_PP_NORED(def) \
  198. DRI_CONF_OPT_BEGIN_V(pp_nored,enum,def,"0:1") \
  199.         DRI_CONF_DESC(en,"A post-processing filter to remove the red channel") \
  200. DRI_CONF_OPT_END
  201.  
  202. #define DRI_CONF_PP_NOGREEN(def) \
  203. DRI_CONF_OPT_BEGIN_V(pp_nogreen,enum,def,"0:1") \
  204.         DRI_CONF_DESC(en,"A post-processing filter to remove the green channel") \
  205. DRI_CONF_OPT_END
  206.  
  207. #define DRI_CONF_PP_NOBLUE(def) \
  208. DRI_CONF_OPT_BEGIN_V(pp_noblue,enum,def,"0:1") \
  209.         DRI_CONF_DESC(en,"A post-processing filter to remove the blue channel") \
  210. DRI_CONF_OPT_END
  211.  
  212. #define DRI_CONF_PP_JIMENEZMLAA(def,min,max) \
  213. DRI_CONF_OPT_BEGIN_V(pp_jimenezmlaa,int,def, # min ":" # max ) \
  214.         DRI_CONF_DESC(en,"Morphological anti-aliasing based on Jimenez\' MLAA. 0 to disable, 8 for default quality") \
  215. DRI_CONF_OPT_END
  216.  
  217. #define DRI_CONF_PP_JIMENEZMLAA_COLOR(def,min,max) \
  218. DRI_CONF_OPT_BEGIN_V(pp_jimenezmlaa_color,int,def, # min ":" # max ) \
  219.         DRI_CONF_DESC(en,"Morphological anti-aliasing based on Jimenez\' MLAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL apps") \
  220. DRI_CONF_OPT_END
  221.  
  222.  
  223.  
  224. /**
  225.  * \brief Performance-related options
  226.  */
  227. #define DRI_CONF_SECTION_PERFORMANCE \
  228. DRI_CONF_SECTION_BEGIN \
  229.         DRI_CONF_DESC(en,"Performance")
  230.  
  231. #define DRI_CONF_TCL_SW 0
  232. #define DRI_CONF_TCL_PIPELINED 1
  233. #define DRI_CONF_TCL_VTXFMT 2
  234. #define DRI_CONF_TCL_CODEGEN 3
  235. #define DRI_CONF_TCL_MODE(def) \
  236. DRI_CONF_OPT_BEGIN_V(tcl_mode,enum,def,"0:3") \
  237.         DRI_CONF_DESC_BEGIN(en,"TCL mode (Transformation, Clipping, Lighting)") \
  238.                 DRI_CONF_ENUM(0,"Use software TCL pipeline") \
  239.                 DRI_CONF_ENUM(1,"Use hardware TCL as first TCL pipeline stage") \
  240.                 DRI_CONF_ENUM(2,"Bypass the TCL pipeline") \
  241.                 DRI_CONF_ENUM(3,"Bypass the TCL pipeline with state-based machine code generated on-the-fly") \
  242.         DRI_CONF_DESC_END \
  243. DRI_CONF_OPT_END
  244.  
  245. #define DRI_CONF_FTHROTTLE_BUSY 0
  246. #define DRI_CONF_FTHROTTLE_USLEEPS 1
  247. #define DRI_CONF_FTHROTTLE_IRQS 2
  248. #define DRI_CONF_FTHROTTLE_MODE(def) \
  249. DRI_CONF_OPT_BEGIN_V(fthrottle_mode,enum,def,"0:2") \
  250.         DRI_CONF_DESC_BEGIN(en,"Method to limit rendering latency") \
  251.                 DRI_CONF_ENUM(0,"Busy waiting for the graphics hardware") \
  252.                 DRI_CONF_ENUM(1,"Sleep for brief intervals while waiting for the graphics hardware") \
  253.                 DRI_CONF_ENUM(2,"Let the graphics hardware emit a software interrupt and sleep") \
  254.         DRI_CONF_DESC_END \
  255. DRI_CONF_OPT_END
  256.  
  257. #define DRI_CONF_VBLANK_NEVER 0
  258. #define DRI_CONF_VBLANK_DEF_INTERVAL_0 1
  259. #define DRI_CONF_VBLANK_DEF_INTERVAL_1 2
  260. #define DRI_CONF_VBLANK_ALWAYS_SYNC 3
  261. #define DRI_CONF_VBLANK_MODE(def) \
  262. DRI_CONF_OPT_BEGIN_V(vblank_mode,enum,def,"0:3") \
  263.         DRI_CONF_DESC_BEGIN(en,"Synchronization with vertical refresh (swap intervals)") \
  264.                 DRI_CONF_ENUM(0,"Never synchronize with vertical refresh, ignore application's choice") \
  265.                 DRI_CONF_ENUM(1,"Initial swap interval 0, obey application's choice") \
  266.                 DRI_CONF_ENUM(2,"Initial swap interval 1, obey application's choice") \
  267.                 DRI_CONF_ENUM(3,"Always synchronize with vertical refresh, application chooses the minimum swap interval") \
  268.         DRI_CONF_DESC_END \
  269. DRI_CONF_OPT_END
  270.  
  271. #define DRI_CONF_HYPERZ_DISABLED 0
  272. #define DRI_CONF_HYPERZ_ENABLED 1
  273. #define DRI_CONF_HYPERZ(def) \
  274. DRI_CONF_OPT_BEGIN_B(hyperz, def) \
  275.         DRI_CONF_DESC(en,"Use HyperZ to boost performance") \
  276. DRI_CONF_OPT_END
  277.  
  278. #define DRI_CONF_MAX_TEXTURE_UNITS(def,min,max) \
  279. DRI_CONF_OPT_BEGIN_V(texture_units,int,def, # min ":" # max ) \
  280.         DRI_CONF_DESC(en,"Number of texture units used") \
  281. DRI_CONF_OPT_END
  282.  
  283. #define DRI_CONF_TEXTURE_BLEND_QUALITY(def,range) \
  284. DRI_CONF_OPT_BEGIN_V(texture_blend_quality,float,def,range) \
  285.         DRI_CONF_DESC(en,"Texture filtering quality vs. speed, AKA “brilinear” texture filtering") \
  286. DRI_CONF_OPT_END
  287.  
  288. #define DRI_CONF_TEXTURE_HEAPS_ALL 0
  289. #define DRI_CONF_TEXTURE_HEAPS_CARD 1
  290. #define DRI_CONF_TEXTURE_HEAPS_GART 2
  291. #define DRI_CONF_TEXTURE_HEAPS(def) \
  292. DRI_CONF_OPT_BEGIN_V(texture_heaps,enum,def,"0:2") \
  293.         DRI_CONF_DESC_BEGIN(en,"Used types of texture memory") \
  294.                 DRI_CONF_ENUM(0,"All available memory") \
  295.                 DRI_CONF_ENUM(1,"Only card memory (if available)") \
  296.                 DRI_CONF_ENUM(2,"Only GART (AGP/PCIE) memory (if available)") \
  297.         DRI_CONF_DESC_END \
  298. DRI_CONF_OPT_END
  299.  
  300.  
  301.  
  302. /**
  303.  * \brief Software-fallback options.  To allow using features (like
  304.  * GL_ARB_vertex_program) on GPUs that don't otherwise support the feature.
  305.  */
  306. #define DRI_CONF_SECTION_SOFTWARE \
  307. DRI_CONF_SECTION_BEGIN \
  308.         DRI_CONF_DESC(en,"Features that are not hardware-accelerated")
  309.  
  310. #define DRI_CONF_ARB_VERTEX_PROGRAM(def) \
  311. DRI_CONF_OPT_BEGIN_B(arb_vertex_program, def) \
  312.         DRI_CONF_DESC(en,"Enable extension GL_ARB_vertex_program") \
  313. DRI_CONF_OPT_END
  314.  
  315.  
  316.  
  317. /**
  318.  * \brief Miscellaneous configuration options
  319.  */
  320. #define DRI_CONF_SECTION_MISCELLANEOUS \
  321. DRI_CONF_SECTION_BEGIN \
  322.         DRI_CONF_DESC(en,"Miscellaneous")
  323.  
  324. #define DRI_CONF_ALWAYS_HAVE_DEPTH_BUFFER(def) \
  325. DRI_CONF_OPT_BEGIN_B(always_have_depth_buffer, def) \
  326.         DRI_CONF_DESC(en,"Create all visuals with a depth buffer") \
  327. DRI_CONF_OPT_END
  328.