xref: /aosp_15_r20/external/mesa3d/src/gallium/drivers/radeonsi/si_debug_options.h (revision 6104692788411f58d303aa86923a9ff6ecaded22)
1 OPT_BOOL(inline_uniforms, true, "Optimize shaders by replacing uniforms with literals")
2 OPT_BOOL(aux_debug, false, "Generate ddebug_dumps for the auxiliary context")
3 OPT_BOOL(sync_compile, false, "Always compile synchronously (will cause stalls)")
4 OPT_BOOL(dump_shader_binary, false, "Dump shader binary as part of ddebug_dumps")
5 OPT_BOOL(debug_disassembly, false,
6          "Report shader disassembly as part of driver debug messages (for shader db)")
7 OPT_BOOL(halt_shaders, false, "Halt shaders at the start (will hang)")
8 OPT_BOOL(vs_fetch_always_opencode, false,
9          "Always open code vertex fetches (less efficient, purely for testing)")
10 OPT_BOOL(no_infinite_interp, false, "Kill PS with infinite interp coeff")
11 OPT_BOOL(clamp_div_by_zero, false, "Clamp div by zero (x / 0 becomes FLT_MAX instead of NaN)")
12 OPT_BOOL(vrs2x2, false, "Enable 2x2 coarse shading for non-GUI elements")
13 OPT_BOOL(enable_sam, false, "Enable Smart Access Memory with Above 4G Decoding for unvalidated platforms.")
14 OPT_BOOL(disable_sam, false, "Disable Smart Access Memory.")
15 OPT_BOOL(fp16, false, "Enable FP16 for mediump.")
16 /* for Maya */
17 OPT_INT(tc_max_cpu_storage_size, 2500, "Enable the CPU storage for pipelined buffer uploads in TC.")
18 /* for Creo and Snx */
19 OPT_INT(max_vram_map_size, 8196, "Maximum size of a buffer in VRAM to map directly. Bigger buffers use staging uploads.")
20 OPT_BOOL(force_use_fma32, false, "Force use fma32 instruction for GPU family newer than gfx9")
21 OPT_BOOL(dcc_msaa, true, "Enable DCC for MSAA for GFX10-10.3")
22 OPT_BOOL(zerovram, false, "Zero all VRAM allocations")
23 OPT_BOOL(clear_lds, false, "Clear LDS at the end of shaders. Might decrease performance.")
24 OPT_BOOL(cache_rb_gl2, false, "Enable GL2 caching for CB and DB.")
25 OPT_BOOL(optimize_io, true, "Run nir_opt_varyings in the GLSL linker.")
26 
27 #undef OPT_BOOL
28 #undef OPT_INT
29