Mesa (main): mesa: print a warning when an extension can't be disabled

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Nov 4 14:49:41 UTC 2021


Module: Mesa
Branch: main
Commit: 8a03e259779094a593ee974b91977e37ffb2e835
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a03e259779094a593ee974b91977e37ffb2e835

Author: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Date:   Fri Oct 15 09:25:44 2021 +0200

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

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13364>

---

 src/mesa/main/extensions.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c
index 99a17279073..21b45915aa0 100644
--- a/src/mesa/main/extensions.c
+++ b/src/mesa/main/extensions.c
@@ -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;



More information about the mesa-commit mailing list