[Mesa-dev] [PATCH 2/6] i965: add format parameter to debug in get_surface_type

Chris Forbes chrisf at ijw.co.nz
Tue Oct 9 02:33:38 PDT 2012


---
 src/mesa/drivers/dri/i965/brw_draw_upload.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index f5f65ca..0a563ed 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -219,7 +219,8 @@ static GLuint get_surface_type( GLenum type, GLuint size,
                                 GLenum format, bool normalized, bool integer )
 {
    if (unlikely(INTEL_DEBUG & DEBUG_VERTS))
-      printf("type %s size %d normalized %d\n", 
+      printf("format %s type %s size %d normalized %d\n",
+		   _mesa_lookup_enum_by_nr(format),
 		   _mesa_lookup_enum_by_nr(type), size, normalized);
 
    if (integer) {
-- 
1.7.12.2



More information about the mesa-dev mailing list