-
Notifications
You must be signed in to change notification settings - Fork 474
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some more suspicious swapchain rfc keyword usage #1680
Open
stonesthrow
wants to merge
10
commits into
KhronosGroup:main
Choose a base branch
from
stonesthrow:Some-more-suspicious-swapchain-RFC-keyword-usage
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
0329fb3
Update wsi.txt
stonesthrow 5c24ec7
Update swapchain_counters.txt
stonesthrow 41150d5
Update wsi.txt
stonesthrow e36c231
vkGetSwapchainStatusKHR codes
stonesthrow f12c413
Removed as-usual text
stonesthrow 32416d0
Merge branch 'KhronosGroup:main' into Some-more-suspicious-swapchain-…
stonesthrow 6cdf707
Change Status code line
stonesthrow b64bd1f
Reword return from retired oldSwapchain on vkQueuePresent
stonesthrow af04900
Merge branch 'KhronosGroup:main' into Some-more-suspicious-swapchain-…
stonesthrow ceb4ba8
Merge branch 'KhronosGroup:main' into Some-more-suspicious-swapchain-…
stonesthrow File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -332,11 +332,7 @@ outnumber calls to flink:vkDestroySwapchainKHR. | |
|
||
After pname:oldSwapchain is retired, the application can: pass to | ||
flink:vkQueuePresentKHR any images it had already acquired from | ||
pname:oldSwapchain. | ||
E.g., an application may present an image from the old swapchain before an | ||
image from the new swapchain is ready to be presented. | ||
As usual, flink:vkQueuePresentKHR may: fail if pname:oldSwapchain has | ||
entered a state that causes ename:VK_ERROR_OUT_OF_DATE_KHR to be returned. | ||
pname:oldSwapchain. flink:vkQueuePresentKHR must: return ename:VK_ERROR_OUT_OF_DATE_KHR. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This seems wrong, and contrary to the original text. |
||
|
||
ifdef::VK_KHR_shared_presentable_image[] | ||
The application can: continue to use a shared presentable image obtained | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When we drafted the OUT_OF_DATE language, some IHVs were uncomfortable with requiring errors in states that are defined as OUT_OF_DATE, and carry on as if things are fine instead. This language is fine with me, but other driver vendors may still object to such requirements.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK. Good history. The issue by is KrO0ze identifying non-exact language. Do we know who objected? see if they reaffirm stance or not.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lot of code relies on mustiness of this. So if you preserve "may", it needs some serious acompanying note explaining what exactly that implies as well as what is the correct way to deal with swapchain state.
I can imagine though the failure could be allowed to be deferred. E.g.
acquire
pretends success, and then it fails atpresent
. Still needs to be copiously noted in spec if that can happen and explicitly how far the driver can push that leeway.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cubanismo - lets see if we can craft some text that will work here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if resolved per @cubanismo comment, but I certainly am happy with "must"...