kms: fix incorrect capture region on intel when playing a fullscreen game with a lower resolution (on some wayland compositors)

This commit is contained in:
dec05eba
2025-11-17 23:54:09 +01:00
parent cc43ca0336
commit 92f4bd5f95
4 changed files with 22 additions and 24 deletions

2
TODO
View File

@@ -61,8 +61,6 @@ Remove follow focused option.
Exit if X11/Wayland killed (if drm plane dead or something?)
Use SRC_W and SRC_H for screen plane instead of crtc_w and crtc_h.
Test if p2 state can be worked around by using pure nvenc api and overwriting cuInit/cuCtxCreate* to not do anything. Cuda might be loaded when using nvenc but it might not be used, with certain record options? (such as h264 p5).
nvenc uses cuda when using b frames and rgb->yuv conversion, so convert the image ourselves instead.-