Geoffrey McRae
b3879ff1d7
[host] windows: the vertex shader is common to all post-processors
2023-11-10 06:28:05 +11:00
Geoffrey McRae
1e30539fb2
[dxgi] cache the input shader resource view of the src texture
2023-10-29 21:53:48 +11:00
Geoffrey McRae
52410beea7
[host] dxgi: check for correct comRef usage
2023-10-29 20:29:14 +11:00
Geoffrey McRae
21cd380cad
[host] dxgi: seperate out and implement a post processor chain
2023-10-29 20:27:17 +11:00
Geoffrey McRae
e225f66cee
[host] dxgi: explicitly flush the pipeline to reduce latency
2023-10-27 22:08:33 +11:00
Geoffrey McRae
2206752b66
[host] dxgi: fix d3d12 backend resource leak
...
The handle is only needed so we can open the resource, once we have
it we can close the handle. We then cache the shared resource for
future reuse if possible.
2023-10-27 21:56:49 +11:00
Geoffrey McRae
0510d06c4b
[host] dxgi: fix d3d12 texture sharing when in HDR
2023-10-27 21:22:00 +11:00
Geoffrey McRae
699d95818d
[host] dxgi: upate d3d12 backend to use comRef
2023-10-27 21:01:44 +11:00
Geoffrey McRae
fffac35300
[host] dxgi: update d3d11 backend to make use of comRef
2023-10-27 18:44:17 +11:00
Geoffrey McRae
35b0f8edf3
[host] dxgi: allow the HDR texture to be shared with other backends
2023-10-27 18:43:26 +11:00
Geoffrey McRae
544164f637
[host] dxgi: allow the backend to shutdown before freeing comRef globals
2023-10-27 18:42:38 +11:00
Geoffrey McRae
b94166177f
[host] dxgi: update to make use of comRef (part 1 of 2)
2023-10-27 17:34:34 +11:00
Geoffrey McRae
69b984aa2c
[host] dxgi: add helper to manage COM object memory
2023-10-27 17:33:40 +11:00
Geoffrey McRae
47329ebd89
[host] dxgi: move utility functions into util.c
2023-10-27 11:28:37 +11:00
Geoffrey McRae
b41840b010
[host] all: tell the client if HDR PQ is in use or not
2023-10-27 01:11:57 +11:00
Geoffrey McRae
200b7b732c
[host] dxgi: properly convert HDR16 to HDR10
...
DXGI doesn't take into account the SDRWhiteLevel that has already been
applied to the monitor when it converts to HDR10 which results in clipping.
This change set implements a HLSL shader to reverse this while at the same
time converting to HDR10.
This is still not perfect but far better then doing nothing.
2023-10-26 22:57:41 +11:00
Geoffrey McRae
c5923b9b4d
[host] dxgi: obtain HDR color space and monitor information
2023-10-22 17:38:42 +11:00
Geoffrey McRae
bde2eef175
[host] dxgi: fix format for HDR10 when it needs correcting
2023-10-22 04:01:51 +11:00
Geoffrey McRae
ccd0a0bcf9
[host] dxgi: use HDR10 instead of HDR16 to save bandwidth
2023-10-22 03:47:32 +11:00
Geoffrey McRae
742e41c2c3
[host] dxgi: fix HDR damage aware copy
2023-10-22 03:15:12 +11:00
Geoffrey McRae
12d051d8c0
[host] nvfbc: do not try to init on non NVIDIA hardware
2023-10-22 01:46:57 +11:00
Geoffrey McRae
a6a6b8779a
[host] nvfbc: fix use of initialized variable
2023-10-22 01:21:20 +11:00
Geoffrey McRae
128a8938c6
[host] nvfbc: remove useless update of member
2023-10-20 22:12:42 +11:00
Geoffrey McRae
2e515657dd
[all] update/add license headers
2023-10-20 15:36:34 +11:00
Geoffrey McRae
99333a03c1
[host] nvfbc: fix failure to store last hdr state
2023-04-26 15:58:22 +10:00
Geoffrey McRae
45318aa653
[host] nvfbc: bump the format version when HDR status changes
2023-04-26 15:55:26 +10:00
Geoffrey McRae
f84165ac66
[host] app: report to the client if the frame is actually HDR
2023-04-26 15:48:01 +10:00
Geoffrey McRae
e4a8424fad
[host] nvfbc: fix ARGB10 support
...
There is no performance penalty to using ARGB10 as it's still a 32-bit copy per
pixel and the nvidia driver internally handles any conversions required to make
this work for both SDR and HDR.
2023-04-19 19:52:30 +10:00
Geoffrey McRae
188f25c6bf
[host] nvfbc: increase retry timeout to 1 second
2022-12-09 08:00:03 +11:00
Geoffrey McRae
8619f787b9
[host] nvfbc: retry on failure to init
...
@quantum has observed nvfbc under rare circumstances fail to initialize,
this adds a retry to the init with a short delay to hopefully recover
from this situation.
2022-12-08 21:24:11 +11:00
Quantum
a8521b821e
[all] cmake: standardize indentation to 2 spaces
2022-05-29 11:16:16 +10:00
Geoffrey McRae
a41ab81a90
[host] nvfbc: try all NVIDIA adapters in the system
...
This will allow LG to start if the VM still has a virtual device as
the primary output.
2022-05-18 16:27:17 +10:00
Geoffrey McRae
0f8c0b5fb3
[host] dxgi: fix incorrect skip logic
2022-05-18 15:59:31 +10:00
Geoffrey McRae
57e20007db
[host] dxgi: don't try to use devices without d3d support
...
This change should allow LG to work even if a virtual device is still
attached to the VM even though it might be capturing the wrong display.
2022-05-18 15:38:42 +10:00
Geoffrey McRae
87077dfe6e
[host] nvfbc: add downscale support
2022-05-04 13:38:49 +10:00
Geoffrey McRae
60834a5719
[host] xcb/pipewire/nfbc: use min
and correct inverted logic
2022-05-04 12:23:20 +10:00
Geoffrey McRae
d5e2689d64
[host] nvfbc: fix inverted truncated frame logic
2022-05-04 11:58:04 +10:00
Geoffrey McRae
e4a4e2331a
[host] nvfbc: fix build due to frame info structure changes
2022-05-04 10:37:52 +10:00
Geoffrey McRae
8682ec207e
[host] dxgi: check for invalid usage of d3d12 & downsampling
2022-05-04 10:23:42 +10:00
Geoffrey McRae
c8a5293645
[host] dxgi: refactor dxgi_copyFrame
2022-05-04 09:27:52 +10:00
Geoffrey McRae
15334c89d6
[host] dxgi: match the last entry in the downsample rule list
2022-05-03 17:58:41 +10:00
Geoffrey McRae
2eec459b47
[host] dxgi: finish downsample support for d3d11 backend
2022-05-03 12:15:24 +10:00
Geoffrey McRae
947325e00d
[host] dxgi: fix failure to copy to texture with sub resources
...
`CopyResource` will silently fail when trying to copy from a texture
with no subresources to one with. Instead we must use `ResolveSubresource`
2022-05-02 15:53:20 +10:00
Geoffrey McRae
3134ec84de
[host] dxgi: add support for downsampling the capture before sending
...
This is an experimental & incomplete feature for those using
supersampling. Anything > 1200p will be downsampled by 50% before
copying out of the GPU to save on memory bandwidth.
Unfinished! Has issues with damage tracking and currently can not
be configured. Only dx11 has been tested at this point, everything
else will likely have problems/crash.
2022-05-01 19:45:44 +10:00
vmfortress
36f97f08ad
[host] dxgi: add nanosecond-scale sleep capability to d3d12
...
The nsleep() call lets d3d12 sleep for a more precise amount of
time while maintaining the current millisecond-scale sleep
interface in the configuration file.
2022-03-06 17:21:14 +11:00
Tudor Brindus
eeefc15e46
[host] build with -Wstrict-prototypes
2022-02-25 20:38:44 +11:00
Quantum
75ec3c0478
[host] nvfbc: shorten nvfbc_getName() result
...
To avoid client showing "Using : NVFBC (NVidia Frame Buffer Capt".
This happens because the string is truncated to 31 characters to fit
in the char capture[32]; member of KVMFRRecord_VMInfo.
2022-01-26 23:06:47 +11:00
Geoffrey McRae
ccdf7b7c0e
[host] app: report the full capture name to the client
2022-01-26 19:32:55 +11:00
Geoffrey McRae
99536eaf9d
dxgi: check for memory leaks in d3d12
2022-01-19 09:58:14 +11:00
Geoffrey McRae
f8b4874799
dxgi: cosmetics
2022-01-19 09:58:14 +11:00