-
Notifications
You must be signed in to change notification settings - Fork 227
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
rendervulkan: Fix getting Vulkan DRM formats if backend doesn't use modifiers #1548
rendervulkan: Fix getting Vulkan DRM formats if backend doesn't use modifiers #1548
Conversation
This patch does not work for me on Polaris. Instead, the one proposed in #1218 (comment) --- a/src/rendervulkan.cpp
+++ b/src/rendervulkan.cpp
@@ -2799,7 +2799,7 @@ bool vulkan_init_format(VkFormat format, uint32_t drmFormat)
}
else
{
- if ( !GetBackend()->SupportsFormat( drmFormat ) )
+ if ( GetBackend()->UsesModifiers() && !GetBackend()->SupportsFormat( drmFormat ) )
return false;
wlr_drm_format_set_add( &sampledDRMFormats, drmFormat, DRM_FORMAT_MOD_INVALID ); does work. |
@HanabishiRecca That path only gets hit if |
Other reporters also confirm that: #1218 (comment). |
c9cda2e
to
251e7f2
Compare
Updated to include that check too. |
Thank you. |
I'm pleased to report this is working well on an RX 580. For fellow openSUSE users: while we wait for this to be merged, I've packaged this for Tumbleweed: https://build.opensuse.org/package/show/home:xylobol:playground/gamescope |
Debian / Ubuntu: did the same with a *.deb |
Gather the supported DRM formats even if backend doesn't use modifiers.
251e7f2
to
29c775e
Compare
pls merge asap! |
seconding this. |
3.15.15 worked fine for me; however, after updating to 3.16.1, an assertion happened:
I can confirm that the patch resolves this issue on NixOS with X11 and Plasma. |
thank god it's merged! now waiting for arch linux |
You will have to wait the next release and then after that for archlinux pkg. I believe this will take a while. For now you can install Edit: Removed instructions since the package already references master branch |
Off-topic, but that isn't necessary/doesn't change anything. The PKGBUILD already pulls from the master branch, |
… modifiers patch, thanks to @bcomnes. Upstream: ValveSoftware/gamescope#1548
After commit 0110109 running gamescope nested SDL backend on top of x11 plasma causes assertion in wlroots. Related to issue #1218.
This PR returns the vulkan DRM format handling to what it was previously. i.e. they get added even if backend doesn't use modifiers.