summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMark Mueller <MarkKMueller@gmail.com>2013-11-27 21:48:32 -0800
committerMark Mueller <MarkKMueller@gmail.com>2014-01-13 09:44:31 -0800
commit03c2ca95e2fc9f206268a7644de1f352d47fca8a (patch)
tree447b0c4cf02b307c8888d253da1b45cd3045aa0e
parenta0199946235a26ad209fa8bafc57003c96981a4c (diff)
printout changes
-rw-r--r--src/mesa/drivers/dri/i965/brw_blorp.cpp4
-rw-r--r--src/mesa/main/teximage.c3
2 files changed, 5 insertions, 2 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_blorp.cpp b/src/mesa/drivers/dri/i965/brw_blorp.cpp
index cc1a1be8f0..b0256f30db 100644
--- a/src/mesa/drivers/dri/i965/brw_blorp.cpp
+++ b/src/mesa/drivers/dri/i965/brw_blorp.cpp
@@ -95,12 +95,12 @@ brw_blorp_surface_info::set(struct brw_context *brw,
/* set up for a render target */
brw_format_for_mesa_format(linear_format, &this->process_format_flags, &this->brw_surfaceformat, 0);
_mesa_debug(&brw->ctx, "%s: using render format: 0x%x for %s\n",
- __FUNCTION__, this->brw_surfaceformat, _mesa_get_format_name(linear_format));
+ __FUNCTION__, this->brw_surfaceformat, _mesa_get_format_name(mt->format));
} else {
/* set up for a sample target */
brw_format_for_mesa_format(linear_format, &this->process_format_flags, 0, &this->brw_surfaceformat);
_mesa_debug(&brw->ctx, "%s: using sample format: 0x%x for %s\n",
- __FUNCTION__, this->brw_surfaceformat, _mesa_get_format_name(linear_format));
+ __FUNCTION__, this->brw_surfaceformat, _mesa_get_format_name(mt->format));
}
#if 0
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 9c3f1e86e5..bdce98a4d8 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -3043,6 +3043,9 @@ teximage(struct gl_context *ctx, GLboolean compressed, GLuint dims,
internalFormat, format, type);
}
+ _mesa_debug(ctx, "%s: Texture Format: %s\n",
+ __FUNCTION__, _mesa_get_format_name(texFormat));
+
assert(texFormat != MESA_FORMAT_NONE);
/* check that width, height, depth are legal for the mipmap level */