pvr: inline and remove vk_format_get_channel_width
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Matt Coster <matt.coster@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28266>
This commit is contained in:
@@ -42,7 +42,9 @@ void pvr_pbe_get_src_format_and_gamma(VkFormat vk_format,
|
||||
uint32_t *const src_format_out,
|
||||
enum pvr_pbe_gamma *const gamma_out)
|
||||
{
|
||||
uint32_t chan_0_width = vk_format_get_channel_width(vk_format, 0);
|
||||
const struct util_format_description *desc =
|
||||
vk_format_description(vk_format);
|
||||
uint32_t chan_0_width = desc->channel[0].size;
|
||||
|
||||
*gamma_out = default_gamma;
|
||||
|
||||
|
||||
@@ -40,15 +40,6 @@
|
||||
#include "util/u_endian.h"
|
||||
|
||||
|
||||
static inline uint vk_format_get_channel_width(VkFormat vk_format,
|
||||
uint32_t channel)
|
||||
{
|
||||
const struct util_format_description *desc =
|
||||
vk_format_description(vk_format);
|
||||
|
||||
return desc->channel[channel].size;
|
||||
}
|
||||
|
||||
static inline bool vk_format_has_32bit_component(VkFormat vk_format)
|
||||
{
|
||||
const struct util_format_description *desc =
|
||||
|
||||
Reference in New Issue
Block a user