Module: Mesa
Branch: master
Commit: b42204e4d09e048d12bb6d5ca7cef54c66850107
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=b42204e4d09e048d12bb6d5ca7cef54c66850107

Author: Samuel Pitoiset <[email protected]>
Date:   Thu Mar 11 13:28:49 2021 +0100

radv: disable sampling with VK_FORMAT_R64_SFLOAT

It's not supported.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/4433
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9519>

---

 src/amd/vulkan/radv_formats.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_formats.c b/src/amd/vulkan/radv_formats.c
index 050b9e4995a..cb45af34082 100644
--- a/src/amd/vulkan/radv_formats.c
+++ b/src/amd/vulkan/radv_formats.c
@@ -486,7 +486,8 @@ static bool radv_is_sampler_format_supported(VkFormat 
format, bool *linear_sampl
        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_UINT || format == VK_FORMAT_R64_SINT ||
+           format == VK_FORMAT_R64_SFLOAT)
                return false;
        num_format = radv_translate_tex_numformat(format, desc,
                                                  
vk_format_get_first_non_void_channel(format));

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to