mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-18 06:10:36 +01:00
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 <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5728>
This commit is contained in:
parent
f6f1f8e3f6
commit
32bf7229e5
2 changed files with 0 additions and 29 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue