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:
Yonggang Luo
2024-02-29 04:33:25 +08:00
committed by Marge Bot
parent 49f6270e7d
commit a4a42eb652
2 changed files with 3 additions and 10 deletions
+3 -1
View File
@@ -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;
-9
View File
@@ -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 =