projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8fc9702
)
radv: Also signal fence if vkAcquireNextImageKHR returns VK_SUBOPTIMAL_KHR.
author
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Wed, 24 May 2017 18:23:04 +0000
(20:23 +0200)
committer
Bas Nieuwenhuizen
<bas@basnieuwenhuizen.nl>
Sun, 28 May 2017 22:09:45 +0000
(
00:09
+0200)
It is a successful return.
Signed-off-by: Bas Nieuwenhuizen <basni@google.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_wsi.c
patch
|
blob
|
history
diff --git
a/src/amd/vulkan/radv_wsi.c
b/src/amd/vulkan/radv_wsi.c
index 3a8617fd8fabffd7e456fad53f085d0b50139f23..5e866126b91886575a60bf6722a5e57b74f096b8 100644
(file)
--- a/
src/amd/vulkan/radv_wsi.c
+++ b/
src/amd/vulkan/radv_wsi.c
@@
-438,7
+438,7
@@
VkResult radv_AcquireNextImageKHR(
VkResult result = swapchain->acquire_next_image(swapchain, timeout, semaphore,
pImageIndex);
- if (fence &&
result == VK_SUCCESS
) {
+ if (fence &&
(result == VK_SUCCESS || result == VK_SUBOPTIMAL_KHR)
) {
fence->submitted = true;
fence->signalled = true;
}