radv: stop checking the output value of radv_translate_tex_numformat
This function just never returns ~0. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/29265>
This commit is contained in:

committed by
Marge Bot

parent
418fed1805
commit
2fef95f901
@@ -396,7 +396,7 @@ radv_is_storage_image_format_supported(const struct radv_physical_device *pdev,
|
||||
data_format = radv_translate_tex_dataformat(format, desc, vk_format_get_first_non_void_channel(format));
|
||||
num_format = radv_translate_tex_numformat(format, desc, vk_format_get_first_non_void_channel(format));
|
||||
|
||||
if (data_format == ~0 || num_format == ~0)
|
||||
if (data_format == ~0)
|
||||
return false;
|
||||
|
||||
/* Extracted from the GCN3 ISA document. */
|
||||
|
@@ -426,9 +426,6 @@ gfx6_make_texture_descriptor(struct radv_device *device, struct radv_image *imag
|
||||
first_non_void = vk_format_get_first_non_void_channel(vk_format);
|
||||
|
||||
num_format = radv_translate_tex_numformat(vk_format, desc, first_non_void);
|
||||
if (num_format == ~0) {
|
||||
num_format = 0;
|
||||
}
|
||||
|
||||
data_format = radv_translate_tex_dataformat(vk_format, desc, first_non_void);
|
||||
if (data_format == ~0) {
|
||||
|
Reference in New Issue
Block a user