util: Remove unused util_format_planar_is_supported().
authorEric Anholt <eric@anholt.net>
Wed, 1 Jul 2020 23:02:15 +0000 (16:02 -0700)
committerMarge Bot <eric+marge@anholt.net>
Tue, 7 Jul 2020 18:19:22 +0000 (18:19 +0000)
Nothing calls it, and it should have been left in gallium, anyway.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5728>

src/util/format/u_format.c
src/util/format/u_format.h

index 7af030108ad90a8db64d20a331ee0004888e941c..2d657cb6bb3b9a524640ec9c80f9a7be4437ba11 100644 (file)
@@ -1018,25 +1018,3 @@ util_format_snorm8_to_sint8(enum pipe_format format)
       return format;
    }
 }
-
-bool
-util_format_planar_is_supported(struct pipe_screen *screen,
-                                enum pipe_format format,
-                                enum pipe_texture_target target,
-                                unsigned sample_count,
-                                unsigned storage_sample_count,
-                                unsigned bind)
-{
-   unsigned num_planes = util_format_get_num_planes(format);
-   assert(num_planes >= 2);
-
-   for (unsigned i = 0; i < num_planes; i++) {
-      if (!screen->is_format_supported(screen,
-                                       util_format_get_plane_format(format, i),
-                                       target, sample_count,
-                                       storage_sample_count, bind))
-         return false;
-   }
-
-   return true;
-}
index 532b32561c13c5bb8ab98d94ab781ed3d0c29974..fb89f5786da9cca43e67c88dcba15b4fb780dbcd 100644 (file)
@@ -1399,13 +1399,6 @@ util_format_get_plane_height(enum pipe_format format, unsigned plane,
    }
 }
 
-bool util_format_planar_is_supported(struct pipe_screen *screen,
-                                     enum pipe_format format,
-                                     enum pipe_texture_target target,
-                                     unsigned sample_count,
-                                     unsigned storage_sample_count,
-                                     unsigned bind);
-
 /**
  * Return the number of components stored.
  * Formats with block size != 1x1 will always have 1 component (the block).