| 1 | /* |
| 2 | * Copyright 2025 LunarG, Inc. |
| 3 | * SPDX-License-Identifier: MIT |
| 4 | */ |
| 5 | #include "kk_debug.h" |
| 6 | #include "util/u_debug.h" |
| 7 | |
| 8 | enum kk_debug kk_mesa_debug_flags = 0; |
| 9 | |
| 10 | const struct debug_named_value flags[] = { |
| 11 | {"nir", KK_DEBUG_NIR}, |
| 12 | {"msl", KK_DEBUG_MSL}, |
| 13 | {"force_robustness", KK_DEBUG_FORCE_ROBUSTNESS}, |
| 14 | {NULL, 0}, |
| 15 | }; |
| 16 | |
| 17 | DEBUG_GET_ONCE_FLAGS_OPTION(mesa_kk_debug, "MESA_KK_DEBUG", flags, 0); |
| 18 | |
| 19 | void |
| 20 | kk_process_debug_variable(void) |
| 21 | { |
| 22 | kk_mesa_debug_flags = debug_get_option_mesa_kk_debug(); |
| 23 | } |