2003-10-21 06:05:39 +00:00
/*
* XML DRI client - side driver configuration
* Copyright ( C ) 2003 Felix Kuehling
*
* Permission is hereby granted , free of charge , to any person obtaining a
* copy of this software and associated documentation files ( the " Software " ) ,
* to deal in the Software without restriction , including without limitation
* the rights to use , copy , modify , merge , publish , distribute , sublicense ,
* and / or sell copies of the Software , and to permit persons to whom the
* Software is furnished to do so , subject to the following conditions :
*
* The above copyright notice and this permission notice shall be included
* in all copies or substantial portions of the Software .
*
* THE SOFTWARE IS PROVIDED " AS IS " , WITHOUT WARRANTY OF ANY KIND , EXPRESS
* OR IMPLIED , INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY ,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT . IN NO EVENT SHALL
* FELIX KUEHLING , OR ANY OTHER CONTRIBUTORS BE LIABLE FOR ANY CLAIM ,
* DAMAGES OR OTHER LIABILITY , WHETHER IN AN ACTION OF CONTRACT , TORT OR
* OTHERWISE , ARISING FROM , OUT OF OR IN CONNECTION WITH THE SOFTWARE
* OR THE USE OR OTHER DEALINGS IN THE SOFTWARE .
*
*/
/**
2020-06-12 11:42:32 +02:00
* \ file driconf . h
2003-10-21 06:05:39 +00:00
* \ brief Pool of common options
* \ author Felix Kuehling
*
2005-04-11 21:41:40 +00:00
* This file defines macros that can be used to construct
2020-06-12 11:22:42 +02:00
* driConfigOptions in the drivers .
2003-10-21 06:05:39 +00:00
*/
2020-06-12 11:42:32 +02:00
# ifndef __DRICONF_H
# define __DRICONF_H
2003-10-21 06:05:39 +00:00
/*
* generic macros
*/
/** \brief Begin __driConfigOptions */
# define DRI_CONF_BEGIN \
2019-01-22 16:49:29 +00:00
" <?xml version= \" 1.0 \" standalone= \" yes \" ?> " \
" <!DOCTYPE driinfo [ " \
" <!ELEMENT driinfo (section*)> " \
" <!ELEMENT section (description+, option+)> " \
" <!ELEMENT description (enum*)> " \
2020-06-12 11:22:42 +02:00
" <!ATTLIST description lang CDATA #FIXED \" en \" " \
2019-01-22 16:49:29 +00:00
" text CDATA #REQUIRED> " \
" <!ELEMENT option (description+)> " \
" <!ATTLIST option name CDATA #REQUIRED " \
" type (bool|enum|int|float) #REQUIRED " \
" default CDATA #REQUIRED " \
" valid CDATA #IMPLIED> " \
" <!ELEMENT enum EMPTY> " \
" <!ATTLIST enum value CDATA #REQUIRED " \
" text CDATA #REQUIRED> " \
" ]> " \
2003-10-21 06:05:39 +00:00
" <driinfo> \n "
/** \brief End __driConfigOptions */
# define DRI_CONF_END \
" </driinfo> \n "
/** \brief Begin a section of related options */
# define DRI_CONF_SECTION_BEGIN \
" <section> \n "
/** \brief End a section of related options */
# define DRI_CONF_SECTION_END \
" </section> \n "
/** \brief Begin an option definition */
# define DRI_CONF_OPT_BEGIN(name,type,def) \
" <option name= \" " # name " \" type= \" " # type " \" default= \" " # def " \" > \n "
/** \brief Begin an option definition with restrictions on valid values */
# define DRI_CONF_OPT_BEGIN_V(name,type,def,valid) \
2020-09-10 15:13:03 -07:00
" <option name= \" " # name " \" type= \" " # type " \" default= \" " # def " \" valid= \" " valid " \" > \n "
2003-10-21 06:05:39 +00:00
/** \brief End an option description */
# define DRI_CONF_OPT_END \
" </option> \n "
2020-06-12 11:22:42 +02:00
/** \brief A verbal description (empty version) */
# define DRI_CONF_DESC(text) \
2020-09-10 15:13:03 -07:00
" <description lang= \" en \" text= \" " text " \" /> \n "
2003-10-21 06:05:39 +00:00
2020-06-12 11:22:42 +02:00
/** \brief Begining of a verbal description */
# define DRI_CONF_DESC_BEGIN(text) \
2020-09-10 15:13:03 -07:00
" <description lang= \" en \" text= \" " text " \" > \n "
2003-10-21 06:05:39 +00:00
/** \brief End a description */
# define DRI_CONF_DESC_END \
" </description> \n "
/** \brief A verbal description of an enum value */
# define DRI_CONF_ENUM(value,text) \
2020-09-10 15:13:03 -07:00
" <enum value= \" " # value " \" text= \" " text " \" /> \n "
2003-10-21 06:05:39 +00:00
2020-09-16 12:44:14 -07:00
# define DRI_CONF(sections) \
DRI_CONF_BEGIN \
sections \
DRI_CONF_END
# define DRI_CONF_SECTION(desc, options) \
DRI_CONF_SECTION_BEGIN \
DRI_CONF_DESC ( desc ) \
options \
DRI_CONF_SECTION_END
2020-09-25 15:06:11 -07:00
/**
* \ brief A boolean option definition , with the default value passed in as a
* string
*/
2020-09-16 12:44:14 -07:00
# define DRI_CONF_OPT_B(name, def, desc) \
2020-09-25 15:06:11 -07:00
" <option name= \" " # name " \" type= \" bool \" default= " # def " > \n " \
2020-09-16 12:44:14 -07:00
DRI_CONF_DESC ( desc ) \
DRI_CONF_OPT_END
# define DRI_CONF_OPT_I(name, def, min, max, desc) \
DRI_CONF_OPT_BEGIN_V ( name , int , def , # min " : " # max ) \
DRI_CONF_DESC ( desc ) \
DRI_CONF_OPT_END
# define DRI_CONF_OPT_F(name, def, min, max, desc) \
DRI_CONF_OPT_BEGIN_V ( name , float , def , # min " : " # max ) \
DRI_CONF_DESC ( desc ) \
DRI_CONF_OPT_END
# define DRI_CONF_OPT_E(name, def, min, max, desc, values) \
DRI_CONF_OPT_BEGIN_V ( name , enum , def , # min " : " # max ) \
DRI_CONF_DESC_BEGIN ( desc ) \
values \
DRI_CONF_DESC_END \
DRI_CONF_OPT_END
2005-04-11 21:41:40 +00:00
2020-06-12 11:22:42 +02:00
/**
* \ brief Debugging options
*/
# define DRI_CONF_SECTION_DEBUG \
DRI_CONF_SECTION_BEGIN \
DRI_CONF_DESC ( " Debugging " )
# define DRI_CONF_ALWAYS_FLUSH_BATCH(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( always_flush_batch , def , \
" Enable flushing batchbuffer after each draw call " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALWAYS_FLUSH_CACHE(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( always_flush_cache , def , \
" Enable flushing GPU caches with each draw call " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_DISABLE_THROTTLING(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( disable_throttling , def , \
" Disable throttling on first batch after flush " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_FORCE_GLSL_EXTENSIONS_WARN(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( force_glsl_extensions_warn , def , \
" Force GLSL extension default behavior to 'warn' " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_DISABLE_BLEND_FUNC_EXTENDED(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( disable_blend_func_extended , def , \
" Disable dual source blending " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_DISABLE_ARB_GPU_SHADER5(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( disable_arb_gpu_shader5 , def , \
" Disable GL_ARB_gpu_shader5 " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_DUAL_COLOR_BLEND_BY_LOCATION(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( dual_color_blend_by_location , def , \
" Identify dual color blending sources by location rather than index " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_DISABLE_GLSL_LINE_CONTINUATIONS(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( disable_glsl_line_continuations , def , \
" Disable backslash-based line continuations in GLSL source " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_FORCE_GLSL_VERSION(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_I ( force_glsl_version , def , 0 , 999 , \
" Force a default GLSL version for shaders that lack an explicit #version line " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_GLSL_EXTENSION_DIRECTIVE_MIDSHADER(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_glsl_extension_directive_midshader , def , \
" Allow GLSL #extension directives in the middle of shaders " )
2020-06-12 11:22:42 +02:00
2020-06-13 17:18:34 -04:00
# define DRI_CONF_ALLOW_GLSL_120_SUBSET_IN_110(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_glsl_120_subset_in_110 , def , \
" Allow a subset of GLSL 1.20 in GLSL 1.10 as needed by SPECviewperf13 " )
2020-06-13 17:18:34 -04:00
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_GLSL_BUILTIN_CONST_EXPRESSION(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_glsl_builtin_const_expression , def , \
" Allow builtins as part of constant expressions " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_GLSL_RELAXED_ES(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_glsl_relaxed_es , def , \
" Allow some relaxation of GLSL ES shader restrictions " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_GLSL_BUILTIN_VARIABLE_REDECLARATION(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_glsl_builtin_variable_redeclaration , def , \
" Allow GLSL built-in variables to be redeclared verbatim " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_HIGHER_COMPAT_VERSION(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_higher_compat_version , def , \
" Allow a higher compat profile (version 3.1+) for apps that request it " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_FORCE_GLSL_ABS_SQRT(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( force_glsl_abs_sqrt , def , \
" Force computing the absolute value for sqrt() and inversesqrt() " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_GLSL_CORRECT_DERIVATIVES_AFTER_DISCARD(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( glsl_correct_derivatives_after_discard , def , \
" Implicit and explicit derivatives after a discard behave as if the discard didn't happen " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_GLSL_CROSS_STAGE_INTERPOLATION_MISMATCH(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_glsl_cross_stage_interpolation_mismatch , def , \
" Allow interpolation qualifier mismatch across shader stages " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_GLSL_LAYOUT_QUALIFIER_ON_FUNCTION_PARAMETERS(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_glsl_layout_qualifier_on_function_parameters , def , \
" Allow layout qualifiers on function parameters. " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_DRAW_OUT_OF_ORDER(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_draw_out_of_order , def , \
" Allow out-of-order draw optimizations. Set when Z fighting doesn't have to be accurate. " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_FORCE_GL_VENDOR(def) \
DRI_CONF_OPT_BEGIN ( force_gl_vendor , string , def ) \
2020-08-06 16:05:51 +02:00
DRI_CONF_DESC ( " Override GPU vendor string. " ) \
2020-06-12 11:22:42 +02:00
DRI_CONF_OPT_END
# define DRI_CONF_FORCE_COMPAT_PROFILE(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( force_compat_profile , def , \
" Force an OpenGL compatibility context " )
2020-06-12 11:22:42 +02:00
2020-09-08 02:02:09 +02:00
# define DRI_CONF_OVERRIDE_VRAM_SIZE() \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_I ( override_vram_size , - 1 , - 1 , 2147483647 , \
" Override the VRAM size advertised to the application in MiB (-1 = default) " )
2020-09-08 02:02:09 +02:00
2020-08-17 16:20:17 +02:00
# define DRI_CONF_FORCE_GL_NAMES_REUSE(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( force_gl_names_reuse , def , " Force GL names reuse " )
2020-08-17 16:20:17 +02:00
2020-06-12 11:22:42 +02:00
/**
* \ brief Image quality - related options
*/
# define DRI_CONF_SECTION_QUALITY \
DRI_CONF_SECTION_BEGIN \
DRI_CONF_DESC ( " Image Quality " )
# define DRI_CONF_PRECISE_TRIG(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( precise_trig , def , \
" Prefer accuracy over performance in trig functions " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_PP_CELSHADE(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_E ( pp_celshade , def , 0 , 1 , \
" A post-processing filter to cel-shade the output " , \
" " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_PP_NORED(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_E ( pp_nored , def , 0 , 1 , \
" A post-processing filter to remove the red channel " , \
" " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_PP_NOGREEN(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_E ( pp_nogreen , def , 0 , 1 , \
" A post-processing filter to remove the green channel " , \
" " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_PP_NOBLUE(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_E ( pp_noblue , def , 0 , 1 , \
" A post-processing filter to remove the blue channel " , \
" " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_PP_JIMENEZMLAA(def,min,max) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_I ( pp_jimenezmlaa , def , min , max , \
" Morphological anti-aliasing based on Jimenez \\ \' MLAA. 0 to disable, 8 for default quality " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_PP_JIMENEZMLAA_COLOR(def,min,max) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_I ( pp_jimenezmlaa_color , def , min , max , \
" Morphological anti-aliasing based on Jimenez \\ \' MLAA. 0 to disable, 8 for default quality. Color version, usable with 2d GL apps " )
2020-06-12 11:22:42 +02:00
/**
* \ brief Performance - related options
*/
# define DRI_CONF_SECTION_PERFORMANCE \
DRI_CONF_SECTION_BEGIN \
DRI_CONF_DESC ( " Performance " )
# define DRI_CONF_VBLANK_NEVER 0
# define DRI_CONF_VBLANK_DEF_INTERVAL_0 1
# define DRI_CONF_VBLANK_DEF_INTERVAL_1 2
# define DRI_CONF_VBLANK_ALWAYS_SYNC 3
# define DRI_CONF_VBLANK_MODE(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_E ( vblank_mode , def , 0 , 3 , \
" Synchronization with vertical refresh (swap intervals) " , \
DRI_CONF_ENUM ( 0 , " Never synchronize with vertical refresh, ignore application's choice " ) \
DRI_CONF_ENUM ( 1 , " Initial swap interval 0, obey application's choice " ) \
DRI_CONF_ENUM ( 2 , " Initial swap interval 1, obey application's choice " ) \
DRI_CONF_ENUM ( 3 , " Always synchronize with vertical refresh, application chooses the minimum swap interval " ) )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ADAPTIVE_SYNC(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( adaptive_sync , def , \
" Adapt the monitor sync to the application performance (when possible) " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_VK_WSI_FORCE_BGRA8_UNORM_FIRST(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( vk_wsi_force_bgra8_unorm_first , def , \
" Force vkGetPhysicalDeviceSurfaceFormatsKHR to return VK_FORMAT_B8G8R8A8_UNORM as the first format " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_VK_X11_OVERRIDE_MIN_IMAGE_COUNT(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_I ( vk_x11_override_min_image_count , def , 0 , 999 , \
" Override the VkSurfaceCapabilitiesKHR::minImageCount (0 = no override) " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_VK_X11_STRICT_IMAGE_COUNT(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( vk_x11_strict_image_count , def , \
" Force the X11 WSI to create exactly the number of image specified by the application in VkSwapchainCreateInfoKHR::minImageCount " )
2020-06-12 11:22:42 +02:00
2020-07-01 08:06:09 +02:00
# define DRI_CONF_VK_X11_ENSURE_MIN_IMAGE_COUNT(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( vk_x11_ensure_min_image_count , def , \
" Force the X11 WSI to create at least the number of image specified by the driver in VkSurfaceCapabilitiesKHR::minImageCount " )
2020-07-01 08:06:09 +02:00
2020-06-12 11:22:42 +02:00
# define DRI_CONF_MESA_GLTHREAD(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( mesa_glthread , def , \
" Enable offloading GL driver work to a separate thread " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_MESA_NO_ERROR(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( mesa_no_error , def , \
" Disable GL driver error checking " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_DISABLE_EXT_BUFFER_AGE(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( glx_disable_ext_buffer_age , def , \
" Disable the GLX_EXT_buffer_age extension " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_DISABLE_OML_SYNC_CONTROL(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( glx_disable_oml_sync_control , def , \
" Disable the GLX_OML_sync_control extension " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_DISABLE_SGI_VIDEO_SYNC(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( glx_disable_sgi_video_sync , def , \
" Disable the GLX_SGI_video_sync extension " )
2020-06-12 11:22:42 +02:00
/**
* \ brief Miscellaneous configuration options
*/
# define DRI_CONF_SECTION_MISCELLANEOUS \
DRI_CONF_SECTION_BEGIN \
DRI_CONF_DESC ( " Miscellaneous " )
# define DRI_CONF_ALWAYS_HAVE_DEPTH_BUFFER(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( always_have_depth_buffer , def , \
" Create all visuals with a depth buffer " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_GLSL_ZERO_INIT(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( glsl_zero_init , def , \
" Force uninitialized variables to default to zero " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_VS_POSITION_ALWAYS_INVARIANT(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( vs_position_always_invariant , def , \
" Force the vertex shader's gl_Position output to be considered 'invariant' " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_RGB10_CONFIGS(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_rgb10_configs , def , \
" Allow exposure of visuals and fbconfigs with rgb10a2 formats " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_RGB565_CONFIGS(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_rgb565_configs , def , \
" Allow exposure of visuals and fbconfigs with rgb565 formats " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_ALLOW_FP16_CONFIGS(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( allow_fp16_configs , def , \
" Allow exposure of visuals and fbconfigs with fp16 formats " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_FORCE_INTEGER_TEX_NEAREST(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( force_integer_tex_nearest , def , \
" Force integer textures to use nearest filtering " )
2020-06-12 11:22:42 +02:00
/**
* \ brief Initialization configuration options
*/
# define DRI_CONF_SECTION_INITIALIZATION \
DRI_CONF_SECTION_BEGIN \
DRI_CONF_DESC ( " Initialization " )
# define DRI_CONF_DEVICE_ID_PATH_TAG(def) \
DRI_CONF_OPT_BEGIN ( device_id , string , def ) \
DRI_CONF_DESC ( " Define the graphic device to use if possible " ) \
DRI_CONF_OPT_END
# define DRI_CONF_DRI_DRIVER(def) \
DRI_CONF_OPT_BEGIN ( dri_driver , string , def ) \
DRI_CONF_DESC ( " Override the DRI driver to load " ) \
DRI_CONF_OPT_END
/**
* \ brief Gallium - Nine specific configuration options
*/
# define DRI_CONF_SECTION_NINE \
DRI_CONF_SECTION_BEGIN \
DRI_CONF_DESC ( " Gallium Nine " )
# define DRI_CONF_NINE_THROTTLE(def) \
DRI_CONF_OPT_BEGIN ( throttle_value , int , def ) \
DRI_CONF_DESC ( " Define the throttling value. -1 for no throttling, -2 for default (usually 2), 0 for glfinish behaviour " ) \
DRI_CONF_OPT_END
# define DRI_CONF_NINE_THREADSUBMIT(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( thread_submit , def , \
" Use an additional thread to submit buffers. " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_NINE_OVERRIDEVENDOR(def) \
DRI_CONF_OPT_BEGIN ( override_vendorid , int , def ) \
DRI_CONF_DESC ( " Define the vendor_id to report. This allows faking another hardware vendor. " ) \
DRI_CONF_OPT_END
# define DRI_CONF_NINE_ALLOWDISCARDDELAYEDRELEASE(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( discard_delayed_release , def , \
" Whether to allow the display server to release buffers with a delay when using d3d's presentation mode DISCARD. Default to true. Set to false if suffering from lag (thread_submit=true can also help in this situation). " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_NINE_TEARFREEDISCARD(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( tearfree_discard , def , \
" Whether to make d3d's presentation mode DISCARD (games usually use that mode) Tear Free. If rendering above screen refresh, some frames will get skipped. false by default. " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_NINE_CSMT(def) \
DRI_CONF_OPT_BEGIN ( csmt_force , int , def ) \
DRI_CONF_DESC ( " If set to 1, force gallium nine CSMT. If set to 0, disable it. By default (-1) CSMT is enabled on known thread-safe drivers. " ) \
DRI_CONF_OPT_END
# define DRI_CONF_NINE_DYNAMICTEXTUREWORKAROUND(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( dynamic_texture_workaround , def , \
" If set to true, use a ram intermediate buffer for dynamic textures. Increases ram usage, which can cause out of memory issues, but can fix glitches for some games. " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_NINE_SHADERINLINECONSTANTS(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( shader_inline_constants , def , \
" If set to true, recompile shaders with integer or boolean constants when the values are known. Can cause stutter, but can increase slightly performance. " )
2020-06-12 11:22:42 +02:00
/**
* \ brief radeonsi specific configuration options
*/
# define DRI_CONF_RADEONSI_ASSUME_NO_Z_FIGHTS(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( radeonsi_assume_no_z_fights , def , \
" Assume no Z fights (enables aggressive out-of-order rasterization to improve performance; may cause rendering errors) " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_RADEONSI_COMMUTATIVE_BLEND_ADD(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( radeonsi_commutative_blend_add , def , \
" Commutative additive blending optimizations (may cause rendering errors) " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_RADEONSI_ZERO_ALL_VRAM_ALLOCS(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( radeonsi_zerovram , def , \
" Zero all vram allocations " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_V3D_NONMSAA_TEXTURE_SIZE_LIMIT(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( v3d_nonmsaa_texture_size_limit , def , \
" Report the non-MSAA-only texture size limit " )
2020-06-12 11:22:42 +02:00
/**
* \ brief virgl specific configuration options
*/
# define DRI_CONF_GLES_EMULATE_BGRA(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( gles_emulate_bgra , def , \
" On GLES emulate BGRA formats by using a swizzled RGBA format " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_GLES_APPLY_BGRA_DEST_SWIZZLE(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( gles_apply_bgra_dest_swizzle , def , \
" When the BGRA formats are emulated by using swizzled RGBA formats on GLES apply the swizzle when writing " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_GLES_SAMPLES_PASSED_VALUE(def, minimum, maximum) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_I ( gles_samples_passed_value , def , minimum , maximum , \
" GL_SAMPLES_PASSED value when emulated by GL_ANY_SAMPLES_PASSED " )
2020-06-12 11:22:42 +02:00
/**
* \ brief RADV specific configuration options
2003-10-21 06:05:39 +00:00
*/
2020-06-12 11:22:42 +02:00
# define DRI_CONF_RADV_REPORT_LLVM9_VERSION_STRING(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( radv_report_llvm9_version_string , def , \
" Report LLVM 9.0.1 for games that apply shader workarounds if missing (for ACO only) " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_RADV_ENABLE_MRT_OUTPUT_NAN_FIXUP(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( radv_enable_mrt_output_nan_fixup , def , \
" Replace NaN outputs from fragment shaders with zeroes for floating point render target " )
2020-06-12 11:22:42 +02:00
# define DRI_CONF_RADV_NO_DYNAMIC_BOUNDS(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_B ( radv_no_dynamic_bounds , def , \
" Disabling bounds checking for dynamic buffer descriptors " )
2005-02-26 05:24:04 +00:00
2020-07-30 02:49:33 +02:00
# define DRI_CONF_RADV_OVERRIDE_UNIFORM_OFFSET_ALIGNMENT(def) \
2020-09-16 12:44:14 -07:00
DRI_CONF_OPT_I ( radv_override_uniform_offset_alignment , def , 0 , 128 , \
" Override the minUniformBufferOffsetAlignment exposed to the application. (0 = default) " )
2003-10-21 06:05:39 +00:00
# endif