aboutsummaryrefslogtreecommitdiffstats
path: root/src/util
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2020-07-01 16:02:15 -0700
committerMarge Bot <[email protected]>2020-07-07 18:19:22 +0000
commit32bf7229e51bd82db9ed04ed04481eeb0a7728b7 (patch)
tree76a607b731e0b325f2099b4b66410fe4a55f72a0 /src/util
parentf6f1f8e3f6d4428a17be0ab97afe7d6990dd5842 (diff)
util: Remove unused util_format_planar_is_supported().
Nothing calls it, and it should have been left in gallium, anyway. Reviewed-by: Marek Olšák <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5728>
Diffstat (limited to 'src/util')
-rw-r--r--src/util/format/u_format.c22
-rw-r--r--src/util/format/u_format.h7
2 files changed, 0 insertions, 29 deletions
diff --git a/src/util/format/u_format.c b/src/util/format/u_format.c
index 7af030108ad..2d657cb6bb3 100644
--- a/src/util/format/u_format.c
+++ b/src/util/format/u_format.c
@@ -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;
-}
diff --git a/src/util/format/u_format.h b/src/util/format/u_format.h
index 532b32561c1..fb89f5786da 100644
--- a/src/util/format/u_format.h
+++ b/src/util/format/u_format.h
@@ -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).