intel: Improve the debug info for renderbuffer allocation.
authorEric Anholt <eric@anholt.net>
Tue, 1 Nov 2011 00:07:34 +0000 (17:07 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 1 Nov 2011 22:42:17 +0000 (15:42 -0700)
src/mesa/drivers/dri/intel/intel_fbo.c

index 4537f1fb97b1b1ce0a6e6ca4d4ac00ae8b12280e..b7f07bb40ee6db52fec8db3e61302e2091f5981f 100644 (file)
@@ -26,6 +26,7 @@
  **************************************************************************/
 
 
+#include "main/enums.h"
 #include "main/imports.h"
 #include "main/macros.h"
 #include "main/mfeatures.h"
@@ -154,10 +155,9 @@ intel_alloc_renderbuffer_storage(struct gl_context * ctx, struct gl_renderbuffer
       intel_region_release(&irb->hiz_region);
    }
 
-   /* allocate new memory region/renderbuffer */
-
-   /* alloc hardware renderbuffer */
-   DBG("Allocating %d x %d Intel RBO\n", width, height);
+   DBG("%s: %s: %s (%dx%d)\n", __FUNCTION__,
+       _mesa_lookup_enum_by_nr(internalFormat),
+       _mesa_get_format_name(rb->Format), width, height);
 
    tiling = I915_TILING_NONE;
    if (intel->use_texture_tiling) {