softpipe: add missing sentinel to debug option array
authorHeinrich Fink <hfink@snap.com>
Tue, 6 Jul 2021 18:37:52 +0000 (20:37 +0200)
committerMarge Bot <eric+marge@anholt.net>
Wed, 7 Jul 2021 23:27:34 +0000 (23:27 +0000)
commita2c92da9a1d333737c3483714de5334c33d4062f
treed4426a554c3f8ab514c18c51d4f4725e166e5ddd
parentb138d2f8a34e2bdf62f270ad7dec70fbc80cfbd3
softpipe: add missing sentinel to debug option array

Add DEBUG_NAMED_VALUE_END to finalize debug option array (see
lp_screen.c). Otherwise debug_get_flags_option might attempt to read
debug_named_value::name at an offset and SIGSEGV.

Signed-off-by: Heinrich Fink <hfink@snap.com>
Fixes: 991def0edc8 ("softpipe: Convert to comma-separated SOFTPIPE_DEBUG for debug options.")
Reviewed-by: Marcin Ĺšlusarz <marcin.slusarz@intel.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11742>
src/gallium/drivers/softpipe/sp_screen.c