radv: disable VK_FORMAT_R64_SFLOAT
This format was enabled by accident, isn't useful, and doesn't work. Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4701 Cc: 21.1 <mesa-stable> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10450>
This commit is contained in:
parent
496f99e8d1
commit
816ec3ecb4
|
@ -105,7 +105,7 @@ radv_translate_buffer_dataformat(const struct util_format_description *desc, int
|
|||
}
|
||||
break;
|
||||
case 64:
|
||||
if (desc->nr_channels == 1)
|
||||
if (type != UTIL_FORMAT_TYPE_FLOAT && desc->nr_channels == 1)
|
||||
return V_008F0C_BUF_DATA_FORMAT_32_32;
|
||||
}
|
||||
|
||||
|
@ -363,7 +363,7 @@ radv_translate_tex_dataformat(VkFormat format, const struct util_format_descript
|
|||
}
|
||||
break;
|
||||
case 64:
|
||||
if (desc->nr_channels == 1)
|
||||
if (desc->channel[0].type != UTIL_FORMAT_TYPE_FLOAT && desc->nr_channels == 1)
|
||||
return V_008F14_IMG_DATA_FORMAT_32_32;
|
||||
break;
|
||||
}
|
||||
|
@ -475,7 +475,7 @@ radv_is_sampler_format_supported(VkFormat format, bool *linear_sampling)
|
|||
const struct util_format_description *desc = vk_format_description(format);
|
||||
uint32_t num_format;
|
||||
if (!desc || format == VK_FORMAT_UNDEFINED || format == VK_FORMAT_R64_UINT ||
|
||||
format == VK_FORMAT_R64_SINT || format == VK_FORMAT_R64_SFLOAT)
|
||||
format == VK_FORMAT_R64_SINT)
|
||||
return false;
|
||||
num_format =
|
||||
radv_translate_tex_numformat(format, desc, vk_format_get_first_non_void_channel(format));
|
||||
|
|
Loading…
Reference in New Issue