mesa: print a warning when an extension can't be disabled

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13364>
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2021-10-15 09:25:44 +02:00 committed by Marge Bot
parent aa5a0e1dad
commit 8a03e25977
1 changed files with 5 additions and 0 deletions

View File

@ -282,6 +282,11 @@ _mesa_one_time_init_extension_overrides(void)
else
recognized = false;
if (!enable && recognized && offset <= 1) {
printf("Warning: extension '%s' cannot be disabled\n", ext);
offset = set_extension(&_mesa_extension_override_disables, i, 0);
}
if (!recognized && enable) {
if (unknown_ext >= MAX_UNRECOGNIZED_EXTENSIONS) {
static bool warned;