Skip to content
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

SurfaceCapabilities invariability #388

Open
krOoze opened this issue Sep 27, 2016 · 2 comments
Open

SurfaceCapabilities invariability #388

krOoze opened this issue Sep 27, 2016 · 2 comments

Comments

@krOoze
Copy link
Contributor

krOoze commented Sep 27, 2016

In one of the recent updates it was specified the results from all query commands are by default kept true for the duration of the lifetime of the parameters.

I want to ask if this is intended for vkGetPhysicalDeviceSurfaceCapabilitiesKHR too, which doesn't seem to have "lifetime" of its result otherwisely specified.

That would imply VkSurfaceKHR is no longer valid and would have to be recreated on suspected change of parameters (e.g. on VK_ERROR_OUT_OF_DATE_KHR and window size change). Which doesn't seem intended (with VK_ERROR_SURFACE_LOST_KHR also existing).

On the other hand if the results can change any time arbitrarily, Application could not be capable to adhere to Valid Usage of VkSwapchainCreateInfoKHR, which require the App to restrict some of its parameters to match the result from vkGetPhysicalDeviceSurfaceCapabilitiesKHR.

EDIT: I assume result of vkGetPhysicalDeviceSurfacePresentModesKHR() and vkGetPhysicalDeviceSurfaceFormatsKHR() never changes, otherwise same problem.

@krOoze krOoze changed the title [WSI][Question] SurfaceCapabilities invariability SurfaceCapabilities invariability Oct 4, 2016
@jjulianoatnv
Copy link

Thank you for this feedback. You raise a good question. We began discussing within Khronos.

@krOoze
Copy link
Contributor Author

krOoze commented Nov 18, 2019

@jjulianoatnv Any news?

BTW I also noticed this:

Some Vulkan functions may send protocol over the specified Xlib Display connection when using a swapchain or presentable images created from a VkSurfaceKHR referring to an Xlib window.

and similarly for other platforms. But vkGetPhysicalDeviceSurfaceCapabilitiesKHR is not a swapchain command, though Mesa seems to use the connection.

Which I guess means the value can change at any arbitrary time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants