| 24 Mar 2024 |
@elvishjerricco:matrix.org | Why is it necessary right now though? | 08:27:07 |
K900 | But right now it provides a WSI implementation that can actually use the HDR metadata | 08:27:10 |
K900 | But the WSI implementation speaks a private protocol to Gamescope itself | 08:27:25 |
K900 | And then Gamescope itself speaks another private protocol to Kwin | 08:27:34 |
K900 | Eventually it'll be one stable protocol | 08:27:44 |
K900 | And the WSI code will just talk directly to whatever compositor | 08:27:58 |
@elvishjerricco:matrix.org | And what is wsi exactly? Obviously it's some kind of vulkan layer thing but what's it for? | 08:29:15 |
K900 | WSI is window system integration | 08:31:01 |
K900 | It's the part that does the OS-specific windowing bits | 08:31:11 |
@elvishjerricco:matrix.org | Oh, got it | 08:31:42 |
@elvishjerricco:matrix.org | And eventually plasma will carry a wsi implementation? Or will that be mesa's job? Or both? | 08:32:21 |
K900 | Mesa already does that | 08:33:01 |
K900 | It just doesn't support the HDR protocols because they aren't stable yet | 08:33:25 |
@elvishjerricco:matrix.org | Ok, so we're basically waiting on a stable protocol to form so that mesa can implement it, and then this stuff will basically work without hacks? | 08:34:25 |
K900 | Yes | 08:34:29 |
K900 | Mesa and also compositors | 08:34:45 |
@elvishjerricco:matrix.org | Awesome. Hopefully that's not too far away | 08:34:47 |
@elvishjerricco:matrix.org | But kwin's already got it. I'm assuming the future protocol won't be too dissimilar from what kwin's already got? | 08:35:23 |
K900 | Well kwin currently has frog-color-management-v1 which is the private non-final protocol | 08:35:59 |
K900 | It'll need to have whatever the standard version ends up being | 08:36:08 |
@elvishjerricco:matrix.org | Sure. I'm just saying it'd be nice if the final standard ends up being close to that | 08:36:59 |
@elvishjerricco:matrix.org | Less churn for kde folks | 08:37:13 |
K900 | AFAIUI the frog protocol is explicitly designed to be very very small | 08:37:27 |
K900 | So the final protocol will likely be more complicated | 08:37:34 |
@elvishjerricco:matrix.org | and then there's gnome | 08:39:22 |
@supersamus02:matrix.org | IIRC, there's also the fact that XWayland doesn't support HDR, and Gamescope has a hack to bypass it.
For native Wayland applications (e.g. mpv, Quake 2 RTX) there's no need for Gamescope. | 12:58:24 |
K900 | Not quite | 12:58:47 |
K900 | mpv still needs the HDR layer | 12:59:59 |
K900 | * That still needs the HDR layer | 13:00:05 |
K900 | To propagate the HDR metadata to kwin via the internal protocol | 13:00:19 |