changed depth format for the program to run on amd
authorEleni Maria Stea <estea@igalia.com>
Sat, 18 Sep 2021 17:54:46 +0000 (20:54 +0300)
committerEleni Maria Stea <estea@igalia.com>
Sat, 18 Sep 2021 17:54:46 +0000 (20:54 +0300)
src/main.c
src/vk.c

index 36d26e1..94d6269 100644 (file)
@@ -154,7 +154,7 @@ init(void)
     if (!vk_fill_image_props(&vk_core,
                              win_w, win_h, 1,
                              1, 1, 1,
-                             VK_FORMAT_D24_UNORM_S8_UINT,
+                             VK_FORMAT_D32_SFLOAT_S8_UINT,
                              VK_IMAGE_TILING_OPTIMAL,
                              VK_IMAGE_LAYOUT_UNDEFINED,
                              VK_IMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMAL,
index bde9972..480b6b8 100644 (file)
--- a/src/vk.c
+++ b/src/vk.c
@@ -1033,8 +1033,7 @@ are_props_supported(struct vk_ctx *ctx, struct vk_att_props *props)
     /* usage can't be null */
     if (flags) {
         img_fmt_info.usage = flags;
-    }
-    else {
+    } else {
         if (!props->is_swapchain) {
             fprintf(stderr, "Unsupported Vulkan format properties: usage.\n");
             return false;