Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Remove MAX_SWAPCHAIN_IMAGES limit for XWayland#122

Merged
apanteleev merged 1 commit intoNVIDIA:masterfrom
misyltoad:xwayland-support
Jun 9, 2021
Merged

Remove MAX_SWAPCHAIN_IMAGES limit for XWayland#122
apanteleev merged 1 commit intoNVIDIA:masterfrom
misyltoad:xwayland-support

Conversation

@misyltoad
Copy link
Copy Markdown
Contributor

A well-behaved Vulkan application should not care about the number of swapchain images exposed by vkGetSwapchainImagesKHR.

In XWayland (right now), there is no IMMEDIATE mode, only MAILBOX, which is exposed as IMMEDIATE.

However, this means that the max number of swapchain images exceeds what would normally be expected for typical IMMEDIATE implementations under X11.

With this change I can run Quake 2 RTX under XWayland on my Radeon VII.
This will also likely be needed by NVIDIA following the release of their 470 driver which enables [X]Wayland support.

Signed-off-by: Joshua Ashton joshua@froggi.es

A well-behaved Vulkan application should not care about the number of swapchain images exposed by vkGetSwapchainImagesKHR.

In XWayland (right now), there is no IMMEDIATE mode, only MAILBOX, which is exposed as IMMEDIATE.

However, this means that the max number of swapchain images exceeds what would normally be expected for typical IMMEDIATE implementations under X11.

With this change I can run Quake 2 RTX under XWayland on my Radeon VII.
This will also likely be needed by NVIDIA following the release of their 470 driver which enables [X]Wayland support.

Signed-off-by: Joshua Ashton <joshua@froggi.es>
@apanteleev apanteleev merged commit e579274 into NVIDIA:master Jun 9, 2021
@xcom169
Copy link
Copy Markdown

xcom169 commented Mar 19, 2022

Hello All! This game is only XWayland right now, or can be run with pure Wayland?

@misyltoad
Copy link
Copy Markdown
Contributor Author

It works on native wl

@xcom169
Copy link
Copy Markdown

xcom169 commented Mar 19, 2022

Anything extra is needed for the Wayland mode? For me it looks XWayland is used by default on my Manjaro/Gnome rig.

@misyltoad
Copy link
Copy Markdown
Contributor Author

SDL_VIDEODRIVER=wayland

@xcom169
Copy link
Copy Markdown

xcom169 commented Mar 21, 2022 via email

@misyltoad
Copy link
Copy Markdown
Contributor Author

There is no image

@xcom169
Copy link
Copy Markdown

xcom169 commented Mar 22, 2022

Sorry, the image is here:
image

@res2k
Copy link
Copy Markdown
Contributor

res2k commented Mar 22, 2022

Okay, the issue is a combination of (a) Q2RTX on Linux shipping it's own copy of SDL and (b) that copy not being built with Wayland support. (See eg here: https://github.com/NVIDIA/Q2RTX/runs/5505535453?check_suite_focus=true, the build-linux-x64/Configure output.)
I think this is a genuine issue and should probably get it's own GH issue instead of hijacking this (closed!) PR for further discussion.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants