mesa/src/util
Nicolai Hähnle 8bef4df196 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 <marek.olsak@amd.com>
2019-04-25 12:31:02 +02:00
..
sha1 util: Fix SHA1 implementation on big endian 2017-11-25 12:30:46 -08:00
tests Delete autotools 2019-04-15 13:44:29 -07:00
xmlpool radeonsi: add si_debug_options for convenient adding/removing of options 2019-04-25 12:31:02 +02:00
.gitignore
00-mesa-defaults.conf drirc: Add workaround for Epic Games Launcher 2019-04-22 16:04:19 -04:00
Android.mk android: static link with libexpat with Android O+ 2019-03-25 10:11:57 +02:00
bigmath.h util: Add a simple big math library 2018-10-10 13:13:12 -05:00
bitscan.c util/bitscan: use correct signature for ffs/ffsll 2017-03-13 11:16:34 +00:00
bitscan.h util/u_math: Implement a logbase2 function for unsigned long 2018-05-29 13:37:45 +02:00
bitset.h util: use *unsigned* ints for bit operations 2018-10-23 11:44:02 +01:00
build_id.c util/macros: Import ALIGN_POT from ralloc.c 2018-07-02 12:09:14 -07:00
build_id.h util: Query build-id by symbol address, not library name 2017-09-13 09:49:27 -07:00
crc32.c util: use faster zlib's CRC32 implementaion 2018-01-14 19:10:33 +02:00
crc32.h util: import CRC32 implementation from gallium 2016-11-22 18:05:51 +01:00
dag.c util: Add a DAG datastructure. 2019-03-11 13:13:52 -07:00
dag.h util: Add a DAG datastructure. 2019-03-11 13:13:52 -07:00
debug.c nir: check NIR_SKIP to skip passes by name 2019-01-18 12:31:49 -08:00
debug.h nir: check NIR_SKIP to skip passes by name 2019-01-18 12:31:49 -08:00
disk_cache.c util/disk_cache: close fd in the fallback path 2019-03-28 16:41:27 +00:00
disk_cache.h util: Change remaining uint32 cache ids to sha1 2018-10-26 14:49:22 +11:00
fast_idiv_by_const.c util: Add power-of-two divisor support to compute_fast_udiv_info 2018-10-10 13:13:12 -05:00
fast_idiv_by_const.h util: document a limitation of util_fast_udiv32 2018-10-17 12:27:58 -04:00
format_r11g11b10f.h util: consistently use ifndef guards over pragma once 2017-03-22 16:55:22 +00:00
format_rgb9e5.h util/format: Use explicitly sized types 2016-08-05 09:07:04 -07:00
format_srgb.h util/srgb: Add a float sRGB -> linear helper 2018-04-24 13:41:14 -07:00
format_srgb.py python: Use the print function 2018-07-06 10:04:22 -07:00
futex.h util: emulate futex on FreeBSD using umtx 2019-03-03 19:48:49 +00:00
half_float.c util: mark s as MAYBE_UNUSED in _mesa_half_to_unorm8 2018-08-18 10:34:12 +10:00
half_float.h mesa: add ASTC 2D LDR decoder 2018-07-31 18:09:57 -04:00
hash_table.c util: Helper to create sets and hashes with pointer keys 2019-01-14 10:49:21 -08:00
hash_table.h util: Helper to create sets and hashes with pointer keys 2019-01-14 10:49:21 -08:00
list.h util/list: Make some helpers take const lists 2018-07-29 13:39:35 -07:00
macros.h util: move BITFIELD macros to util/macros.h 2019-02-08 02:54:56 +00:00
Makefile.sources util: Add a DAG datastructure. 2019-03-11 13:13:52 -07:00
merge_driinfo.py radeonsi: add si_debug_options for convenient adding/removing of options 2019-04-25 12:31:02 +02:00
mesa-sha1.c util/sha1: harmonize _mesa_sha1_* wrappers 2017-03-22 11:33:51 +00:00
mesa-sha1.h util: #include "c99_compat.h" to fix Windows build 2017-04-03 13:09:05 -06:00
mesa-sha1_test.c util: Add a SHA1 unit test program 2017-11-25 12:30:46 -08:00
meson.build util: Add a DAG datastructure. 2019-03-11 13:13:52 -07:00
os_memory.h util: promote u_memory to src/util 2018-11-27 15:44:02 -05:00
os_memory_aligned.h util: promote u_memory to src/util 2018-11-27 15:44:02 -05:00
os_memory_debug.h util: promote u_memory to src/util 2018-11-27 15:44:02 -05:00
os_memory_stdc.h util: promote u_memory to src/util 2018-11-27 15:44:02 -05:00
os_misc.c util/os_misc: Add check for PIPE_OS_HURD 2019-02-27 14:56:48 +00:00
os_misc.h util: Move os_misc to util 2018-10-30 14:32:52 -07:00
os_time.c util: use clock_gettime() on PIPE_OS_BSD 2018-03-01 18:44:38 +00:00
os_time.h util: move os_time.[ch] to src/util 2017-11-09 11:57:21 +01:00
ralloc.c util/ralloc: Make sizeof(linear_header) a multiple of 8 2018-11-12 20:54:49 -08:00
ralloc.h ralloc: Fully qualify non-virtual destructor call 2019-04-19 16:17:37 +00:00
rand_xor.c util/rand_xor: add missing include statements 2017-06-01 14:26:12 +01:00
rand_xor.h util/rand_xor: add function to seed rand 2017-03-23 08:16:29 +11:00
rb_tree.c util: rb-tree: A simple, invasive, red-black tree 2018-07-05 11:57:45 +01:00
rb_tree.h util: rb_tree: add safe iterators 2018-08-22 17:49:36 +01:00
register_allocate.c mesa: include mtypes.h less 2018-04-12 19:31:30 -04:00
register_allocate.h ra: Add a callback for selecting a register from what's available. 2017-07-25 14:44:52 -07:00
rgtc.c
rgtc.h
roundeven_test.c
rounding.h util: try to use SSE instructions with MSVC and 32-bit gcc 2016-08-17 12:53:20 -06:00
SConscript util: scons: wire up the sha1 test 2017-12-15 19:01:12 +00:00
set.c util: Helper to create sets and hashes with pointer keys 2019-01-14 10:49:21 -08:00
set.h util: Helper to create sets and hashes with pointer keys 2019-01-14 10:49:21 -08:00
simple_list.h
simple_mtx.h src/util/simple_mtx.h: Fix two -Wunused-param warnings. 2017-11-17 09:27:57 -07:00
slab.c util/slab: Rename slab_mempool typed parameters to mempool 2018-12-14 07:36:05 -08:00
slab.h util/slab: Rename slab_mempool typed parameters to mempool 2018-12-14 07:36:05 -08:00
string_buffer.c util: Add a string buffer implementation 2017-09-26 18:24:33 +02:00
string_buffer.h util: Add a string buffer implementation 2017-09-26 18:24:33 +02:00
strndup.h util/strndup: move header inclusion as applicable 2017-03-22 16:55:23 +00:00
strtod.c util: improve compiler guard 2017-09-03 09:05:23 +01:00
strtod.h
texcompress_rgtc_tmp.h
u_atomic.c util/u_atomic: remove unnecessaty __atomic functions 2017-09-22 17:12:24 +03:00
u_atomic.h util/u_atomic: add p_atomic_xchg 2017-11-09 11:37:30 +01:00
u_atomic_test.c
u_cpu_detect.c gallium: Enable ASIMD/NEON on aarch64. 2019-01-24 11:07:24 -08:00
u_cpu_detect.h util: move u_cpu_detect to util 2018-10-30 14:32:52 -07:00
u_debug.c util: Move u_debug to utils 2018-10-30 14:32:52 -07:00
u_debug.h util: Move u_debug to utils 2018-10-30 14:32:52 -07:00
u_drm.h util: Add a drm_find_modifier helper 2019-03-14 22:41:08 +00:00
u_dynarray.h u_dynarray: add util_dynarray_grow_cap 2019-04-11 09:57:53 +08:00
u_endian.h meson/configure: detect endian.h instead of trying to guess when it's available 2018-03-23 11:44:21 +00:00
u_math.c util: fix a warning when building against clang7 headers 2019-02-27 08:57:41 +02:00
u_math.h u_math: add ushort_to_float/float_to_ushort 2019-04-11 09:57:53 +08:00
u_memory.h util: promote u_memory to src/util 2018-11-27 15:44:02 -05:00
u_process.c util/process: document memory leak 2019-04-04 16:09:52 +00:00
u_process.h util: move process.[ch] to u_process.[ch] 2018-08-01 12:47:16 -07:00
u_queue.c util/queue: add util_queue_adjust_num_threads 2019-04-01 12:37:52 -04:00
u_queue.h util/queue: add util_queue_adjust_num_threads 2019-04-01 12:37:52 -04:00
u_string.h mesa/util: add missing va_end() after va_copy() 2018-09-06 17:33:27 +01:00
u_thread.h util: Don't block SIGSYS for new threads 2019-02-26 19:39:14 +01:00
u_vector.c util: Use util_is_power_of_two_nonzero in u_vector 2018-03-29 14:09:28 -07:00
u_vector.h util: no-op __builtin_types_compatible_p() for non-GCC compilers 2019-03-29 15:33:43 -06:00
vma.c util: Add a virtual memory allocator 2018-05-31 16:17:35 -07:00
vma.h util: Add a virtual memory allocator 2018-05-31 16:17:35 -07:00
xmlconfig.c util: #define PATH_MAX when undefined (eg. Hurd) 2019-03-05 12:27:35 +00:00
xmlconfig.h xmlconfig: add kernel_driver device attribute 2018-08-17 17:16:32 +01:00
xmlpool.h driinfo: add DTD to allow the xml to be validated 2019-02-26 12:48:28 +00:00