I’m going to assume that it is possible to put both the dedicated and integrated GPUs to work, though I’ve never seen this kind of setup.
Every single laptop with a dGPU does that, as I’m typing this now only Minecraft is using the dGPU while everything else is on the iGPU. Everything is fully performant (including YT videos), and it greatly increases battery life.
@Pogogunner At least on Debian based distros, it’s all part of the driver installation.
As for how it works at the hardware/kernel level the iGPU take some of system RAM to use as VRAM, so all the kernel has to do is give the dGPU a DMA buffer into that. The final piece is for the iGPU driver to send a synchronisation signal to the dGPU when it’s ready to receive the (partial-)frame.