util: Merge util_format_write_4* functions.
[mesa.git] / src / gallium / auxiliary / util / u_tile.c
index 58be4f1526fb21e33e07af15c5bedb5909132c1a..939943a1818375c1a3fae9d5c19c8f75705bdeb8 100644 (file)
@@ -371,22 +371,10 @@ pipe_put_tile_rgba(struct pipe_transfer *pt,
    if (util_format_is_depth_or_stencil(format))
       return;
 
-   if (util_format_is_pure_uint(format)) {
-      util_format_write_4ui(format,
-                            p, src_stride * sizeof(float),
-                            dst, pt->stride,
-                            x, y, w, h);
-   } else if (util_format_is_pure_sint(format)) {
-      util_format_write_4i(format,
-                           p, src_stride * sizeof(float),
-                           dst, pt->stride,
-                           x, y, w, h);
-   } else {
-      util_format_write_4f(format,
-                           p, src_stride * sizeof(float),
-                           dst, pt->stride,
-                           x, y, w, h);
-   }
+   util_format_write_4(format,
+                       p, src_stride * sizeof(float),
+                       dst, pt->stride,
+                       x, y, w, h);
 }
 
 void