Conversation
|
I didn't extensively tested this, but setting Thanks for fixing this! |
|
Tested (wine-wayland) Garry's Mod, Farlight 84, THE FINALS, The Witcher 3, and Cyberpunk 2077 with * using |
|
yep working fine here too, I tested GTAV on wine wayland and DS and VRR successfully activating. As reported on discord CP2077 HDR successfully disabled DS in its HDR10 PQ mode, but its HDR10 scRGB mode did not, making all the colours very fried. There still seems to be some sort of race condition between tearing and ds. I leave both enabled just so I can have at least one working at (most) times, and I'm aware they don't work together. But with both enabled I am still sometimes able to catch my main monitor completely freezing up when leaving and entering fullscreen. Trying to activate hyprsunset whilst a monitor is in DS also seems to still be broken. It works fine if I leave fullscreen, activate hyprsunset, then enter fullscreen again. |
|
I think wayfreeze is broken with this? |
This PR doesn't touch shm. Either the error message is a bit misleading or it's not related to this PR. Hyprland/src/protocols/core/Shm.cpp Lines 145 to 148 in 8d03fcc And it might happen if it sees some unusual dma format in DS mode and passes it to shm without checking. Idk whether there is a reason to limit shm format list. |
|
hmm ok, It continued happening after I went back to SDR, and only fixed when I restarted Hyprland. I'll see if I can find a repro case for this and report it elsewhere |
|
wayfreeze uses values received from https://wayland.app/protocols/wlr-screencopy-unstable-v1#zwlr_screencopy_frame_v1:event:buffer event to create a shm buffer.
So it's a bug in HL wlr screencopy proto implementation. |
that's funny because isn't this the default? I haven't modified this setting at all |
|
It should fix... but it work only for a subset of 10bit formats :D |
Describe your PR, what does it fix/add?
Correctly sends format and modifier events on bind.
Adds two v4 and v5 sanity checks https://wayland.app/protocols/linux-dmabuf-v1#zwp_linux_buffer_params_v1:request:add
Adds
quirks:skip_non_kms_dmabuf_formatsto not report format+modifier pairs which aren't importable to KMS. Fixes wine-wayland DS activation on my nvidia setup. Fixes mpv freeze with DS. Requires restart or triggeringresetFormatTable. #12714Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
quirks:skip_non_kms_dmabuf_formatsprobably has no effect on mesa becauseeglQueryDmaBufFormatsEXTandgetModsForFormatreturn the same set asAquamarine::CDRMBackend::getRenderFormats. For me egl returns extra mods with compression and those aren't importable into KMS.Format table order matters. Some clients seem to choose first/last format or modifier without actually checking whether it's suitable.
Clients that actually check the format table and support feedbacks should work without
quirks:skip_non_kms_dmabuf_formats.Is it ready for merging, or does it need work?
Ready