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;
-}
}
}
-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).