LookingGlass/host/platform/Windows/capture
Quantum 3651852430 [host] nvfbc: round pitch to multiple of 128 for dmabuf import
Certain drivers do not support pitches that are not multiples of 128 bytes,
and instead just does some kind of rounding internally. On DXGI, this is not
a problem because the API rounds pixel pitch, but NvFBC does not. This causes
certain resolutions to simply not work with dmabuf, most notably 3440x1440,
which is 1440p ultrawide.

Since we are copying pixels with the CPU anyways, we might as well round the
pitch up to 128 bytes (32 pixels).
2021-08-06 22:48:33 +10:00
..
DXGI [all] copyright: use unicode copyright sign © 2021-08-04 21:16:35 +10:00
NVFBC [host] nvfbc: round pitch to multiple of 128 for dmabuf import 2021-08-06 22:48:33 +10:00
CMakeLists.txt [host] NvFBC/DXGI: make DXGI the default instead of the fallback 2021-06-06 06:14:24 +10:00