diff options
author | Nicolai Hähnle <[email protected]> | 2019-03-15 14:56:36 +0100 |
---|---|---|
committer | Nicolai Hähnle <[email protected]> | 2019-04-25 12:31:02 +0200 |
commit | 8bef4df196fbb0fad7f3bd6048f71dbc38ebceb3 (patch) | |
tree | 7ef5fd5bac743bec824fd126cdc71ba9e26031f2 /src/util/xmlpool | |
parent | 5078d66a8699e2cbfc5a8244a7d7e0437919a281 (diff) |
radeonsi: add si_debug_options for convenient adding/removing of options
Move the definition of radeonsi_clear_db_cache_before_clear there,
as well as radeonsi_enable_nir.
This removes the AMD_DEBUG=nir option.
We currently still have two places for options: the driconf machinery
and AMD_DEBUG/R600_DEBUG. If we are to have a single place for options,
then the driconf machinery should be preferred since it's more flexible.
The only downside of the driconf machinery was that adding new options
was quite inconvenient. With this change, a simple boolean option can
be added with a single line of code, same as for AMD_DEBUG.
One technical limitation of this particular implementation is that while
almost all driconf features are available, the translation machinery doesn't
pick up the description strings for options added in si_debvug_options. In
practice, translations haven't been provided anyway, and this is intended
for developer options, so I'm not too worried. It could always be added
later if anybody really cares.
v2:
- use bool instead of uint8_t for options
- si_debug_options.inc -> si_debug_options.h
Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/util/xmlpool')
-rw-r--r-- | src/util/xmlpool/t_options.h | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/util/xmlpool/t_options.h b/src/util/xmlpool/t_options.h index a7cba3417cc..bafecb7c781 100644 --- a/src/util/xmlpool/t_options.h +++ b/src/util/xmlpool/t_options.h @@ -343,17 +343,8 @@ 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_RADEONSI_ENABLE_NIR(def) \ -DRI_CONF_OPT_BEGIN_B(radeonsi_enable_nir, def) \ - DRI_CONF_DESC(en,gettext("Enable NIR")) \ -DRI_CONF_OPT_END |