Mesa (main): mesa: throw a log warning any time a fallback texture is used

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jun 2 18:05:06 UTC 2022


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

Author: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Date:   Wed May 11 10:29:16 2022 -0400

mesa: throw a log warning any time a fallback texture is used

this generally means an app is broken in some way, so throw a log
message to be helpful

Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Reviewed-by: Adam Jackson <ajax at redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16821>

---

 src/mesa/main/texstate.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/mesa/main/texstate.c b/src/mesa/main/texstate.c
index 87e81c901c8..90e613f2cc1 100644
--- a/src/mesa/main/texstate.c
+++ b/src/mesa/main/texstate.c
@@ -704,6 +704,7 @@ update_single_program_texture(struct gl_context *ctx, struct gl_program *prog,
     * Mesa implements this by creating a hidden texture object with a pixel of
     * that value.
     */
+   _mesa_log("MESA: Using fallback texture for target %u\n", target_index);
    texObj = _mesa_get_fallback_texture(ctx, target_index);
    assert(texObj);
 



More information about the mesa-commit mailing list