+static const struct debug_named_value sp_debug_options[] = {
+ {"vs", SP_DBG_VS, "dump vertex shader assembly to stderr"},
+ {"gs", SP_DBG_GS, "dump geometry shader assembly to stderr"},
+ {"fs", SP_DBG_FS, "dump fragment shader assembly to stderr"},
+ {"cs", SP_DBG_CS, "dump compute shader assembly to stderr"},
+ {"no_rast", SP_DBG_NO_RAST, "no-ops rasterization, for profiling purposes"},
+ {"use_llvm", SP_DBG_USE_LLVM, "Use LLVM if available for shaders"},
+};
+
+int sp_debug;
+DEBUG_GET_ONCE_FLAGS_OPTION(sp_debug, "SOFTPIPE_DEBUG", sp_debug_options, 0)