José,<br><br>the first patch removes the PIPE_FORMAT_ prefix in a string returned by util_format_name, it makes debug logs shorter. The second patch adds util_format_is_plain.<br><br>diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h<br>

index fb6ade5..d851c31 100644<br>--- a/src/gallium/auxiliary/util/u_format.h<br>+++ b/src/gallium/auxiliary/util/u_format.h<br>@@ -332,10 +332,10 @@ util_format_name(enum pipe_format format)<br> <br>    assert(desc);<br>
    if (!desc) {<br>
-      return &quot;PIPE_FORMAT_???&quot;;<br>+      return &quot;???&quot;;<br>    }<br> <br>-   return desc-&gt;name;<br>+   return desc-&gt;name+12;<br> }<br> <br> static INLINE boolean <br><br>diff --git a/src/gallium/auxiliary/util/u_format.h b/src/gallium/auxiliary/util/u_format.h<br>

index d851c31..350b817 100644<br>--- a/src/gallium/auxiliary/util/u_format.h<br>+++ b/src/gallium/auxiliary/util/u_format.h<br>@@ -338,6 +338,18 @@ util_format_name(enum pipe_format format)<br>    return desc-&gt;name+12;<br>

 }<br> <br>+static INLINE boolean<br>+util_format_is_plain(enum pipe_format format)<br>+{<br>+   const struct util_format_description *desc = util_format_description(format);<br>+<br>+   if (!format) {<br>+      return FALSE;<br>

+   }<br>+<br>+   return desc-&gt;layout == UTIL_FORMAT_LAYOUT_PLAIN ? TRUE : FALSE;<br>+}<br>+<br> static INLINE boolean <br> util_format_is_s3tc(enum pipe_format format)<br> {<br><br>May I push them?<br><br>-Marek<br>