X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Futil%2Fxmlpool%2Ft_options.h;h=8995310865d9164b4d58d3bd8747a099f67486fe;hb=a029eafba360d660dc43f8b44f654ce6af31a2c2;hp=80ddf0e203ec31a2e6d19a682d9c745df719e229;hpb=7407670036e1acb32cfeb49742a523e056e93e0a;p=mesa.git diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h index 80ddf0e203e..8995310865d 100644 --- a/src/util/xmlpool/t_options.h +++ b/src/util/xmlpool/t_options.h @@ -35,8 +35,8 @@ * all the translations. The result (options.h) is included by * xmlpool.h which in turn can be included by drivers. * - * The macros used to describe otions in this file are defined in - * ../xmlpool.h. + * The macros used to describe options in this file are defined in + * src/util/xmlpool.h. */ /* This is needed for xgettext to extract translatable strings. @@ -80,6 +80,11 @@ DRI_CONF_OPT_BEGIN_B(disable_blend_func_extended, def) \ DRI_CONF_DESC(en,gettext("Disable dual source blending")) \ DRI_CONF_OPT_END +#define DRI_CONF_DISABLE_ARB_GPU_SHADER5(def) \ +DRI_CONF_OPT_BEGIN_B(disable_arb_gpu_shader5, def) \ + DRI_CONF_DESC(en,"Disable GL_ARB_gpu_shader5") \ +DRI_CONF_OPT_END + #define DRI_CONF_DUAL_COLOR_BLEND_BY_LOCATION(def) \ DRI_CONF_OPT_BEGIN_B(dual_color_blend_by_location, def) \ DRI_CONF_DESC(en,gettext("Identify dual color blending sources by location rather than index")) \ @@ -140,6 +145,16 @@ DRI_CONF_OPT_BEGIN_B(allow_glsl_layout_qualifier_on_function_parameters, def) \ DRI_CONF_DESC(en,gettext("Allow layout qualifiers on function parameters.")) \ DRI_CONF_OPT_END +#define DRI_CONF_ALLOW_DRAW_OUT_OF_ORDER(def) \ +DRI_CONF_OPT_BEGIN_B(allow_draw_out_of_order, def) \ + DRI_CONF_DESC(en,gettext("Allow out-of-order draw optimizations. Set when Z fighting doesn't have to be accurate.")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_FORCE_GL_VENDOR(def) \ +DRI_CONF_OPT_BEGIN(force_gl_vendor, string, def) \ + DRI_CONF_DESC(en,gettext("Allow GPU vendor to be overridden.")) \ +DRI_CONF_OPT_END + #define DRI_CONF_FORCE_COMPAT_PROFILE(def) \ DRI_CONF_OPT_BEGIN_B(force_compat_profile, def) \ DRI_CONF_DESC(en,gettext("Force an OpenGL compatibility context")) \ @@ -215,6 +230,21 @@ DRI_CONF_OPT_BEGIN_B(adaptive_sync,def) \ DRI_CONF_DESC(en,gettext("Adapt the monitor sync to the application performance (when possible)")) \ DRI_CONF_OPT_END +#define DRI_CONF_VK_WSI_FORCE_BGRA8_UNORM_FIRST(def) \ +DRI_CONF_OPT_BEGIN_B(vk_wsi_force_bgra8_unorm_first, def) \ + DRI_CONF_DESC(en,gettext("Force vkGetPhysicalDeviceSurfaceFormatsKHR to return VK_FORMAT_B8G8R8A8_UNORM as the first format")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_VK_X11_OVERRIDE_MIN_IMAGE_COUNT(def) \ +DRI_CONF_OPT_BEGIN_V(vk_x11_override_min_image_count, int, def, "0:999") \ + DRI_CONF_DESC(en,gettext("Override the VkSurfaceCapabilitiesKHR::minImageCount (0 = no override)")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_VK_X11_STRICT_IMAGE_COUNT(def) \ +DRI_CONF_OPT_BEGIN_B(vk_x11_strict_image_count, def) \ + DRI_CONF_DESC(en,gettext("Force the X11 WSI to create exactly the number of image specified by the application in VkSwapchainCreateInfoKHR::minImageCount")) \ +DRI_CONF_OPT_END + #define DRI_CONF_MESA_GLTHREAD(def) \ DRI_CONF_OPT_BEGIN_B(mesa_glthread, def) \ DRI_CONF_DESC(en,gettext("Enable offloading GL driver work to a separate thread")) \ @@ -259,11 +289,31 @@ DRI_CONF_OPT_BEGIN_B(glsl_zero_init, def) \ DRI_CONF_DESC(en,gettext("Force uninitialized variables to default to zero")) \ DRI_CONF_OPT_END +#define DRI_CONF_VS_POSITION_ALWAYS_INVARIANT(def) \ +DRI_CONF_OPT_BEGIN_B(vs_position_always_invariant, def) \ + DRI_CONF_DESC(en,gettext("Force the vertex shader's gl_Position output to be considered 'invariant'")) \ +DRI_CONF_OPT_END + #define DRI_CONF_ALLOW_RGB10_CONFIGS(def) \ DRI_CONF_OPT_BEGIN_B(allow_rgb10_configs, def) \ DRI_CONF_DESC(en,gettext("Allow exposure of visuals and fbconfigs with rgb10a2 formats")) \ DRI_CONF_OPT_END +#define DRI_CONF_ALLOW_RGB565_CONFIGS(def) \ +DRI_CONF_OPT_BEGIN_B(allow_rgb565_configs, def) \ +DRI_CONF_DESC(en,gettext("Allow exposure of visuals and fbconfigs with rgb565 formats")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_ALLOW_FP16_CONFIGS(def) \ +DRI_CONF_OPT_BEGIN_B(allow_fp16_configs, def) \ +DRI_CONF_DESC(en,gettext("Allow exposure of visuals and fbconfigs with fp16 formats")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_FORCE_INTEGER_TEX_NEAREST(def) \ +DRI_CONF_OPT_BEGIN_B(force_integer_tex_nearest, def) \ + DRI_CONF_DESC(en,gettext("Force integer textures to use nearest filtering")) \ +DRI_CONF_OPT_END + /** * \brief Initialization configuration options */ @@ -319,15 +369,20 @@ DRI_CONF_OPT_BEGIN(csmt_force, int, def) \ DRI_CONF_DESC(en,gettext("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) \ +DRI_CONF_OPT_BEGIN_B(dynamic_texture_workaround, def) \ + DRI_CONF_DESC(en,gettext("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.")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_NINE_SHADERINLINECONSTANTS(def) \ +DRI_CONF_OPT_BEGIN_B(shader_inline_constants, def) \ + DRI_CONF_DESC(en,gettext("If set to true, recompile shaders with integer or boolean constants when the values are known. Can cause stutter, but can increase slightly performance.")) \ +DRI_CONF_OPT_END + /** * \brief radeonsi specific configuration options */ -#define DRI_CONF_RADEONSI_ENABLE_SISCHED(def) \ -DRI_CONF_OPT_BEGIN_B(radeonsi_enable_sisched, def) \ - DRI_CONF_DESC(en,gettext("Use the LLVM sisched option for shader compiles")) \ -DRI_CONF_OPT_END - #define DRI_CONF_RADEONSI_ASSUME_NO_Z_FIGHTS(def) \ DRI_CONF_OPT_BEGIN_B(radeonsi_assume_no_z_fights, def) \ DRI_CONF_DESC(en,gettext("Assume no Z fights (enables aggressive out-of-order rasterization to improve performance; may cause rendering errors)")) \ @@ -338,12 +393,50 @@ DRI_CONF_OPT_BEGIN_B(radeonsi_commutative_blend_add, def) \ DRI_CONF_DESC(en,gettext("Commutative additive blending optimizations (may cause rendering errors)")) \ DRI_CONF_OPT_END -#define DRI_CONF_RADEONSI_CLEAR_DB_CACHE_BEFORE_CLEAR(def) \ -DRI_CONF_OPT_BEGIN_B(radeonsi_clear_db_cache_before_clear, def) \ - DRI_CONF_DESC(en,"Clear DB cache before fast depth clear") \ -DRI_CONF_OPT_END - #define DRI_CONF_RADEONSI_ZERO_ALL_VRAM_ALLOCS(def) \ DRI_CONF_OPT_BEGIN_B(radeonsi_zerovram, def) \ DRI_CONF_DESC(en,"Zero all vram allocations") \ DRI_CONF_OPT_END + +#define DRI_CONF_V3D_NONMSAA_TEXTURE_SIZE_LIMIT(def) \ +DRI_CONF_OPT_BEGIN_B(v3d_nonmsaa_texture_size_limit, def) \ + DRI_CONF_DESC(en,"Report the non-MSAA-only texture size limit") \ +DRI_CONF_OPT_END + +/** + * \brief virgl specific configuration options + */ + +#define DRI_CONF_GLES_EMULATE_BGRA(def) \ +DRI_CONF_OPT_BEGIN_B(gles_emulate_bgra, def) \ + DRI_CONF_DESC(en,gettext("On GLES emulate BGRA formats by using a swizzled RGBA format")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_GLES_APPLY_BGRA_DEST_SWIZZLE(def) \ +DRI_CONF_OPT_BEGIN_B(gles_apply_bgra_dest_swizzle, def) \ + DRI_CONF_DESC(en,gettext("When the BGRA formats are emulated by using swizzled RGBA formats on GLES apply the swizzle when writing")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_GLES_SAMPLES_PASSED_VALUE(def, minimum, maximum) \ +DRI_CONF_OPT_BEGIN_V(gles_samples_passed_value, def, minimum, maximum) \ + DRI_CONF_DESC(en,gettext("GL_SAMPLES_PASSED value when emulated by GL_ANY_SAMPLES_PASSED")) \ +DRI_CONF_OPT_END + +/** + * \brief RADV specific configuration options + */ + +#define DRI_CONF_RADV_REPORT_LLVM9_VERSION_STRING(def) \ +DRI_CONF_OPT_BEGIN_B(radv_report_llvm9_version_string, def) \ + DRI_CONF_DESC(en,gettext("Report LLVM 9.0.1 for games that apply shader workarounds if missing (for ACO only)")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_RADV_ENABLE_MRT_OUTPUT_NAN_FIXUP(def) \ +DRI_CONF_OPT_BEGIN_B(radv_enable_mrt_output_nan_fixup, def) \ + DRI_CONF_DESC(en,gettext("Replace NaN outputs from fragment shaders with zeroes for floating point render target")) \ +DRI_CONF_OPT_END + +#define DRI_CONF_RADV_NO_DYNAMIC_BOUNDS(def) \ +DRI_CONF_OPT_BEGIN_B(radv_no_dynamic_bounds, def) \ + DRI_CONF_DESC(en,gettext("Disabling bounds checking for dynamic buffer descriptors")) \ +DRI_CONF_OPT_END