looking-glass/host/platform/Windows/capture/NVFBC
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
..
src [host] nvfbc: round pitch to multiple of 128 for dmabuf import 2021-08-06 22:48:33 +10:00
CMakeLists.txt [c-host] renamed finall to just plain host 2020-05-25 13:42:43 +10:00