Commit Graph
4 Commits
Author SHA1 Message Date
Niewiarowski 41090902b7 fix(linux/cuda): make shared planes valid GL aliases and test their lifecycle
EXT_external_objects requires an image that aliases a GL texture to have the
mutable format bit and every usage its format supports.

Put the allocation behind a driver interface, so tests can run init, allocate,
reset and the fallback to mapped planes without a GPU.

Drain GL errors before the imports, so a stale error can't make a successful
import look failed and close a descriptor that GL now owns.
2026-11-05 11:58:21 -05:00
Niewiarowski 30bd572292 refactor(linux/cuda): keep the GL fence out of the handoff interface
The fence calls now act on a fence the caller keeps, so the interface no
longer passes it around as void *. The copy loop stops at the first
failure with std::ranges::all_of instead of testing the status in the
loop condition.
2026-11-05 11:58:21 -05:00
Niewiarowski 2abb690c2a test(linux/cuda): cover the GL->CUDA frame handoff
Move the per-frame handoff and the GL fence wait into functions that
take their GL and CUDA calls as parameters, and test them with fakes:
the order of GL and CUDA work with two and three planes, every failing
step, and every GL wait status.

The mapped path now unmaps the textures when getting a mapped array
fails, instead of returning with them still mapped.
2026-11-05 11:58:21 -05:00
Santiago Forero Molano e213b2fab9 fix(capture/linux): accept NvFBC virtual desktop without outputs (#5925) 2026-10-28 08:26:07 -04:00