vulkan/meta: Fixes for clear
authorFaith Ekstrand <faith.ekstrand@collabora.com>
Tue, 31 Jan 2023 02:11:59 +0000 (20:11 -0600)
committerMarge Bot <emma+marge@anholt.net>
Fri, 4 Aug 2023 21:32:00 +0000 (21:32 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24326>

src/vulkan/runtime/vk_meta_clear.c

index 0f8ffe8..950d9ff 100644 (file)
@@ -73,7 +73,7 @@ build_clear_shader(const struct vk_meta_clear_key *key)
       const struct glsl_type *out_type;
       if (vk_format_is_int(key->render.color_attachment_formats[a]))
          out_type = glsl_ivec4_type();
-      else if (vk_format_is_int(key->render.color_attachment_formats[a]))
+      else if (vk_format_is_uint(key->render.color_attachment_formats[a]))
          out_type = glsl_uvec4_type();
       else
          out_type = glsl_vec4_type();