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@alum.mit.edu> Reviewed-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13766>
This commit is contained in:
parent
269b4dec9e
commit
a315d04308
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue