mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-24 14:40:21 +01:00
mesa: tag a couple framebuffer commands for MESA_VERBOSE=api
Acked-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/37054>
This commit is contained in:
parent
5cf9318ff2
commit
5fde46f883
1 changed files with 14 additions and 0 deletions
|
|
@ -3338,6 +3338,12 @@ bind_framebuffer(GLenum target, GLuint framebuffer)
|
|||
GLboolean bindReadBuf, bindDrawBuf;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API)
|
||||
_mesa_debug(ctx,
|
||||
"glBindFramebuffer(%s, %u)\n",
|
||||
_mesa_enum_to_string(target),
|
||||
framebuffer);
|
||||
|
||||
switch (target) {
|
||||
case GL_DRAW_FRAMEBUFFER_EXT:
|
||||
bindDrawBuf = GL_TRUE;
|
||||
|
|
@ -5780,6 +5786,14 @@ _mesa_InvalidateFramebuffer(GLenum target, GLsizei numAttachments,
|
|||
struct gl_framebuffer *fb;
|
||||
GET_CURRENT_CONTEXT(ctx);
|
||||
|
||||
if (MESA_VERBOSE & VERBOSE_API) {
|
||||
for (unsigned i = 0; i < numAttachments; i++)
|
||||
_mesa_debug(ctx,
|
||||
"glInvalidateFramebuffer(%s, %s)\n",
|
||||
_mesa_enum_to_string(target),
|
||||
_mesa_enum_to_string(attachments[i]));
|
||||
}
|
||||
|
||||
fb = get_framebuffer_target(ctx, target);
|
||||
if (!fb) {
|
||||
_mesa_error(ctx, GL_INVALID_ENUM,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue