-
Notifications
You must be signed in to change notification settings - Fork 213
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
base: master
Are you sure you want to change the base?
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
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.