util: Handle the remaining formats in pipe_put_tile_rgba().
authorMichal Krol <michal@vmware.com>
Fri, 15 Jan 2010 16:42:38 +0000 (17:42 +0100)
committerMichal Krol <michal@vmware.com>
Fri, 15 Jan 2010 18:00:11 +0000 (19:00 +0100)
src/gallium/auxiliary/util/u_tile.c

index 1ba82bb21f0fb4c2875701af190259693bc0249d..f9936eb1cb2bbfefda7df6fb9aab6607b24bd2a5 100644 (file)
@@ -1357,7 +1357,10 @@ pipe_put_tile_rgba(struct pipe_transfer *pt,
       /*z24s8_put_tile_rgba((unsigned *) packed, w, h, p, src_stride);*/
       break;
    default:
-      debug_printf("%s: unsupported format %s\n", __FUNCTION__, pf_name(format));
+      util_format_write_4f(format,
+                           p, src_stride * sizeof(float),
+                           packed, util_format_get_stride(format, w),
+                           0, 0, w, h);
    }
 
    pipe_put_tile_raw(pt, x, y, w, h, packed, 0);