util: Make all 3 fetch_rgba functions occupy the same function slot.
[mesa.git] / src / util / format / u_format_yuv.c
index 21d082548c65a3ff7edec55c1a67beabd1d6ef3d..b5f75bdc0cf6c37ce64905d696603c94216c47ee 100644 (file)
@@ -245,9 +245,11 @@ util_format_r8g8_b8g8_unorm_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stri
 
 
 void
-util_format_r8g8_b8g8_unorm_fetch_rgba_float(float *dst, const uint8_t *src,
+util_format_r8g8_b8g8_unorm_fetch_rgba(void *in_dst, const uint8_t *src,
                                         unsigned i, ASSERTED unsigned j)
 {
+   float *dst = in_dst;
+
    assert(i < 2);
    assert(j < 1);
 
@@ -465,9 +467,11 @@ util_format_g8r8_g8b8_unorm_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stri
 
 
 void
-util_format_g8r8_g8b8_unorm_fetch_rgba_float(float *dst, const uint8_t *src,
+util_format_g8r8_g8b8_unorm_fetch_rgba(void *in_dst, const uint8_t *src,
                                         unsigned i, ASSERTED unsigned j)
 {
+   float *dst = in_dst;
+
    assert(i < 2);
    assert(j < 1);
 
@@ -681,9 +685,10 @@ util_format_uyvy_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
 
 
 void
-util_format_uyvy_fetch_rgba_float(float *dst, const uint8_t *src,
+util_format_uyvy_fetch_rgba(void *in_dst, const uint8_t *src,
                              unsigned i, ASSERTED unsigned j)
 {
+   float *dst = in_dst;
    uint8_t y, u, v;
 
    assert(i < 2);
@@ -902,9 +907,10 @@ util_format_yuyv_pack_rgba_8unorm(uint8_t *dst_row, unsigned dst_stride,
 
 
 void
-util_format_yuyv_fetch_rgba_float(float *dst, const uint8_t *src,
+util_format_yuyv_fetch_rgba(void *in_dst, const uint8_t *src,
                              unsigned i, ASSERTED unsigned j)
 {
+   float *dst = in_dst;
    uint8_t y, u, v;
 
    assert(i < 2);