projects
/
vkrt
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f7fd8e
)
changed depth format for the program to run on amd
author
Eleni Maria Stea
<estea@igalia.com>
Sat, 18 Sep 2021 17:54:46 +0000
(20:54 +0300)
committer
Eleni Maria Stea
<estea@igalia.com>
Sat, 18 Sep 2021 17:54:46 +0000
(20:54 +0300)
src/main.c
patch
|
blob
|
history
src/vk.c
patch
|
blob
|
history
diff --git
a/src/main.c
b/src/main.c
index
36d26e1
..
94d6269
100644
(file)
--- 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
(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;