mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 08:50:09 +01:00
pvr: Remove vk_format_is_pure_integer and use common helper.
Signed-off-by: Rajnesh Kanwal <rajnesh.kanwal@imgtec.com> Reviewed-by: Frank Binns <frank.binns@imgtec.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16897>
This commit is contained in:
parent
72c634fb23
commit
0c3c1a8be4
3 changed files with 2 additions and 8 deletions
|
|
@ -314,7 +314,7 @@ unsupported:
|
|||
|
||||
bool pvr_format_is_pbe_downscalable(VkFormat vk_format)
|
||||
{
|
||||
if (vk_format_is_pure_integer(vk_format)) {
|
||||
if (vk_format_is_int(vk_format)) {
|
||||
/* PBE downscale behavior for integer formats does not match Vulkan
|
||||
* spec. Vulkan requires a single sample to be chosen instead of
|
||||
* taking the average sample color.
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ void pvr_pbe_get_src_format_and_gamma(VkFormat vk_format,
|
|||
*gamma_out = default_gamma;
|
||||
|
||||
if (vk_format_has_32bit_component(vk_format) ||
|
||||
vk_format_is_pure_integer(vk_format)) {
|
||||
vk_format_is_int(vk_format)) {
|
||||
*src_format_out = PVRX(PBESTATE_SOURCE_FORMAT_8_PER_CHANNEL);
|
||||
} else if (vk_format_is_float(vk_format)) {
|
||||
*src_format_out = PVRX(PBESTATE_SOURCE_FORMAT_F16_PER_CHANNEL);
|
||||
|
|
|
|||
|
|
@ -55,12 +55,6 @@ vk_format_is_alpha_on_msb(VkFormat vk_format)
|
|||
#endif
|
||||
}
|
||||
|
||||
static inline bool
|
||||
vk_format_is_pure_integer(VkFormat vk_format)
|
||||
{
|
||||
return util_format_is_pure_integer(vk_format_to_pipe_format(vk_format));
|
||||
}
|
||||
|
||||
static inline uint
|
||||
vk_format_get_channel_width(VkFormat vk_format, uint32_t channel)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue