u_debug_describe: add PIPE_TEXTURE_RECT
authorLuca Barbieri <luca@luca-barbieri.com>
Sat, 21 Aug 2010 10:45:39 +0000 (12:45 +0200)
committerLuca Barbieri <luca@luca-barbieri.com>
Sat, 21 Aug 2010 10:45:39 +0000 (12:45 +0200)
src/gallium/auxiliary/util/u_debug_describe.c

index 52bbf53be3c3c6e3a5a4d45774f2007d339f6926..f21ebd02f55a30312614f35abba352a4d45deb42 100644 (file)
@@ -44,6 +44,8 @@ debug_describe_resource(char* buf, const struct pipe_resource *ptr)
       util_sprintf(buf, "pipe_texture1d<%u,%s,%u>", ptr->width0, util_format_short_name(ptr->format), ptr->last_level);
    else if(ptr->target == PIPE_TEXTURE_2D)
       util_sprintf(buf, "pipe_texture2d<%u,%u,%s,%u>", ptr->width0, ptr->height0, util_format_short_name(ptr->format), ptr->last_level);
+   else if(ptr->target == PIPE_TEXTURE_RECT)
+      util_sprintf(buf, "pipe_texture_rect<%u,%u,%s>", ptr->width0, ptr->height0, util_format_short_name(ptr->format));
    else if(ptr->target == PIPE_TEXTURE_CUBE)
       util_sprintf(buf, "pipe_texture_cube<%u,%u,%s,%u>", ptr->width0, ptr->height0, util_format_short_name(ptr->format), ptr->last_level);
    else if(ptr->target == PIPE_TEXTURE_3D)