News for hackers. Stuff that matters.
Re:GTK: Introducing Graphics Offload by AshamedCaptain on Saturday November 18, 2023 @08:06AM (#38319090)
Frankly, it was X11 which introduced "Graphics Offload" in the first place, with stuff like XV, chroma keying, and hardware overlays. Then compositors came and we moved to texture_from_surface extensions and uploading things into GPUs. This is just the eternal wheel of reinventing things in computing (TM) doing yet another iteration and unlikely to give any tangible benefits over the situation from decades ago.
[dead]
Re:GTK: Introducing Graphics Offload by AshamedCaptain on Saturday November 18, 2023 @02:51PM (#38323624)
> Xorg still doesn't really have support for non-RGB surfaces

You really need to add context to these statements, because _right now_ I am using through Xorg a program which uses a frigging colormap, which is as non-RGB as it gets. The entire reason Xlib has this "WhitePixel" and XGetPixel and XYPixmap and other useless functions which normally fetch a lot of ire is because it tries to go out of its way to support practically other-wordly color visuals and image formats. If anything, I'd say it is precisely RGB which has the most problems with X11, specially when you go more than 24bpp.

> there for attaching GPU buffers

None of this is about the GPU, but about about directly presenting images for _hardware_ composition using direct scan-out, hardware layers or not. Exactly what Xv is about, and the reason Xv supports formats like YUV.

> There isn't any incentive to implement this in X11 either because X11 is supposed to work over the network and none of this stuff would

As if that prevented any of the extensions done to X11 in the last three decades, including Xv.

Re:GTK: Introducing Graphics Offload by kaba0 on Saturday November 18, 2023 @12:25PM (#38321930)
There are plenty of wheel reinventions in IT, but let’s not pretend that modern graphics are anything like it used to be. We have 8k@120Hz screens now, the amount of pixels that have to be displayed in a short amount of time is staggering.
Re:GTK: Introducing Graphics Offload by AshamedCaptain on Saturday November 18, 2023 @02:55PM (#38323668)
At the same time, you also have hardware that can push those pixels without problem. When X and these technologies were introduced, the hardware was not able to store the entire framebuffer for one screenful in memory, let alone two. Nowadays you are able to store a handful at the very minimum. Certainly there's a different level of performance here in all parts, but the concepts have changed very little, and this entire article kind of shows it.
Re:GTK: Introducing Graphics Offload by mananaysiempre on Sunday November 19, 2023 @04:24PM (#38338242)
Storing is one thing, pushing another. 32bpp×4K@60Hz works out to 1.8GB/s, which even on modern CPUs requires you to not do stupid things—e.g. a C loop with a (modest) iteration per byte will likely end up an order of magnitude slower. And that’s if you’re doing 32bpp SDR like it’s 2005; a floating-point pixel format will be four times more data than that.