Geoffrey McRae
0b210a280d
[all] update the copyright to 2024
2024-02-01 17:16:31 +11:00
Geoffrey McRae
72b25b99bc
[host] add new D12 capture interface
...
Note, this capture interface is not yet feature complete but does seem
to be stable.
2024-01-31 00:29:55 +11:00
Geoffrey McRae
34e8a2255e
[host] dxgi: d3d12 now writes direclty into ivshmem
...
This is still incomplete as d3d12 doesn't have any proper sync with the
captured frame and as such is still not suggested for general usage. This
change though is monumental for this project as it removes a full memory
copy reducing bandwidth consumption enormously.
2024-01-27 22:57:13 +11:00
Geoffrey McRae
f05151c9a6
[host] nvfbc: fix compilation with new debug code
2023-12-07 16:33:54 +11:00
Geoffrey McRae
929e88b9d3
[all] provide conditional path optimization hints to the compiler
2023-11-12 18:26:08 +11:00
Geoffrey McRae
27f3af8221
[host] nvfbc: cosmetics
2023-11-11 09:08:56 +11:00
Geoffrey McRae
cb849b287c
[hosts] nvfbc: exit loop early if ystart is > then dataHeight
2023-11-11 09:08:08 +11:00
Geoffrey McRae
0057cf5377
[host] nvfbc: add additional debug output
2023-11-10 08:01:03 +11:00
Geoffrey McRae
138a0aee53
[all] update cmake minimum version
2023-11-10 06:28:05 +11:00
Geoffrey McRae
d592f13f88
[host] all: don't combine the downsampler rules
2023-11-10 06:28:05 +11:00
Geoffrey McRae
905fea57f0
[host] nvfbc: fix stride for odd resolutions in 24-bit mode
2023-11-10 06:28:05 +11:00
Geoffrey McRae
8605df8c8d
[host] nvfbc: fix damage copy when operating in 24bpp
2023-11-10 06:28:05 +11:00
Geoffrey McRae
86e8e99107
[all] add initial support for RGB24-bpp support
2023-11-10 06:28:05 +11:00
Geoffrey McRae
5bba4dfab5
[host] nvfbc: fix incorrect metadata when resampling is enabled
2023-11-10 06:28:05 +11:00
Geoffrey McRae
30c577beeb
[host] all: make the downsample rule matching common
2023-11-10 06:28:05 +11:00
Geoffrey McRae
6c7f3c4197
[host] nvfbc: make the downsampleParser available outside of NvFBC
2023-11-10 06:28:05 +11:00
Geoffrey McRae
578d98fd22
[host] DXGI: initial implementation of RGB24 support
...
This commit breaks damage tracking and the dx12 backend and is not in
a state where it should be used by the general public.
2023-11-10 06:28:05 +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
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
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
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
Johnathon Weaver
0f998582b9
[host] nvfbc: Fix dwmapi linking error
...
Fixed linking for DwmFlush and also rearranged as per how DXGI is.
2022-01-07 01:46:35 +11:00
Geoffrey McRae
2f8b139131
[host] windows: set DwmFlush default to off
...
This new feature while helps on some systems, others using freesync or
higher refresh rates where the capture can't keep up will limit to
fractions of the refresh rate. Better to disable and allow users to
opt-in.
2022-01-06 19:20:08 +11:00
Geoffrey McRae
b058cbe9fe
[host] nvfbc: add DwmFlush here too as it makes a large difference
2022-01-06 19:01:29 +11:00
Geoffrey McRae
952ebea2c5
[all] refresh copyright dates
2022-01-05 19:42:46 +11:00
Geoffrey McRae
ebf20dd108
[host] nvfbc: fix failure to startup
2022-01-05 19:31:47 +11:00
Geoffrey McRae
ba9f2b85b6
[host/client] kvmfr: update to include extra user data about the VM
...
This change allows the host to provide information to the client about
how the VM is configured, information such as the UUID, CPU
configuration and capture method both for informational display in the
client as well as debugging in the client's logs.
The format of the records allows this to be extended later with new
record types without needing to bump the KVMFR version.
2022-01-05 19:18:43 +11:00
WYF
b21d842f0e
[host] nvfbc: add an option to specify adapter
2021-12-26 11:14:17 +11:00
Quantum
12461196c3
[host] nvfbc: fix comments in updateDamageRects
2021-12-24 15:30:04 +11:00
Geoffrey McRae
b515fa80d5
[host] nvfbc: be more intellegent when unionizing disjointed sets
2021-10-27 00:00:38 +11:00
Quantum
1f24ab0742
[host] nvfbc: avoid waking up pointer thread for no reason
...
If the wait times out, we used to simply restart the loop, which causes
it to check this->stop and exit if set to true. However, nvfbc_stop
already calls lgSignalEvent, which would wake up the pointer thread to
perform the check, so there is no need to set a timeout on the wait.
2021-09-29 17:47:02 +10:00
Quantum
4ecf749f7e
[host] remove all casts around malloc
2021-08-16 16:26:58 +10:00
Quantum
cdda89cef7
[host] use correct argument order for calloc
2021-08-16 16:25:59 +10:00
Tudor Brindus
982b4e6625
[host] use variable-relative sizeof where possible
2021-08-16 16:22:55 +10:00
Quantum
4f7ce91e7f
[host] capture: switch all asserts to DEBUG_ASSERT
2021-08-14 12:19:07 +10:00