From: Eleni Maria Stea Date: Sat, 18 Sep 2021 17:54:46 +0000 (+0300) Subject: changed depth format for the program to run on amd X-Git-Url: https://eleni.mutantstargoat.com/git/?p=vkrt;a=commitdiff_plain;h=c19f01fbe275b5e619e3c4112fe6b32af9bb2713 changed depth format for the program to run on amd --- diff --git a/src/main.c b/src/main.c index 36d26e1..94d6269 100644 --- a/src/main.c +++ b/src/main.c @@ -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, diff --git a/src/vk.c b/src/vk.c index bde9972..480b6b8 100644 --- 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;