News for hackers. Stuff that matters.
Re:GTK: Introducing Graphics Offload by audidude on Saturday November 18, 2023 @10:47AM (#38320785)
This would require protocol changes for X11 at best, and nobody is adding new protocols. Especially when nobody does Drawable of Drawables anymore and all use client-side drawing with Xshm.

You need to dynamically change stacking of subsurfaces on a per-frame basis when doing the CRTC.

Re:GTK: Introducing Graphics Offload by AshamedCaptain on Saturday November 18, 2023 @10:58AM (#38320916)
I really don't see why it would need a new protocol. You can change stacking of "subsurfaces" in the traditional X11 fashion and you can most definitely do "drawables of drawables". At the very least I'd bet most clients still create a separate window for video content.

I agree though it would require a lot of changes to the server and no one is in the mood (like, dynamically decide whether I composite this window or push it to a Xv port or hardware plane? practically inconceivable in the current graphics stack, albeit it is not a technical X limitation per-se). This entire feature is also going to be pretty pointless in Wayland desktop space either way because no one is in the mood either -- your dmabufs are going to end up in the GPU anyway for the foreseeable future, just because of the complexity of liftoff, variability of GPUs, and the like.

Re:GTK: Introducing Graphics Offload by audidude on Saturday November 18, 2023 @01:27PM (#38322734)
> I really don't see why it would need a new protocol.

You'll need API to remap the Drawable to the scanout plane from a compositor on a per-frame basis (so when submitting the CRTC) and the compositor isn't in control of the CRTC. So...

Re:GTK: Introducing Graphics Offload by AshamedCaptain on Saturday November 18, 2023 @02:56PM (#38323692)
This assumes it would be the role of the window manager or compositor rather than the server who decides that, which I didn't think that way. But I guess it'd make sense (policy vs mechanism). "per-frame basis" I don't see why and it just mirrors Wayland concepts. Still, as protocols go, it's quite a minor change, and one applications don't necessarily have to support.