Mesa (main): mesa: add just a tiny bit of debug info to some _mesa_problem calls
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Nov 12 16:27:07 UTC 2021
Module: Mesa
Branch: main
Commit: a315d0430897bd25aa71c433036cefcba0523a91
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=a315d0430897bd25aa71c433036cefcba0523a91
Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date: Thu Nov 11 21:04:16 2021 -0500
mesa: add just a tiny bit of debug info to some _mesa_problem calls
I hit these on a4xx with dEQP-GLES2/3 runs. Having more info on them
would make everyone's life easier.
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Reviewed-by: Alyssa Rosenzweig <alyssa at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13766>
---
src/mesa/main/texobj.c | 2 +-
src/mesa/program/prog_statevars.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/mesa/main/texobj.c b/src/mesa/main/texobj.c
index ff594b04790..43ad56d22c1 100644
--- a/src/mesa/main/texobj.c
+++ b/src/mesa/main/texobj.c
@@ -215,7 +215,7 @@ _mesa_get_current_tex_object(struct gl_context *ctx, GLenum target)
return ctx->Extensions.ARB_texture_multisample
? ctx->Texture.ProxyTex[TEXTURE_2D_MULTISAMPLE_ARRAY_INDEX] : NULL;
default:
- _mesa_problem(NULL, "bad target in _mesa_get_current_tex_object()");
+ _mesa_problem(NULL, "bad target in _mesa_get_current_tex_object(): 0x%04x", target);
return NULL;
}
}
diff --git a/src/mesa/program/prog_statevars.c b/src/mesa/program/prog_statevars.c
index f3a367d8bb8..a9d4d78a428 100644
--- a/src/mesa/program/prog_statevars.c
+++ b/src/mesa/program/prog_statevars.c
@@ -1344,7 +1344,7 @@ _mesa_program_state_string(const gl_state_index16 state[STATE_LENGTH])
append(str, "not_state");
break;
default:
- _mesa_problem(NULL, "Invalid state in _mesa_program_state_string");
+ _mesa_problem(NULL, "Invalid state in _mesa_program_state_string: %d", state[0]);
break;
}
More information about the mesa-commit
mailing list