mesa: throw a log warning any time a fallback texture is used
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>
Wed, 11 May 2022 14:29:16 +0000 (10:29 -0400)
committerMarge Bot <emma+marge@anholt.net>
Thu, 2 Jun 2022 17:31:16 +0000 (17:31 +0000)
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@amd.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16821>

src/mesa/main/texstate.c

index 87e81c9..90e613f 100644 (file)
@@ -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);