Geoffrey McRae
ecd3692e1e
[host] dxgi: fix crash during init due to out of order accesses
2024-04-04 22:44:49 +11:00
Geoffrey McRae
beb8de922d
[host] dxgi: remove the deprecated and broken d3d12 copyBackend
...
This backend has been deprecated and has been replaced by the new D12 capture
interface.
2024-03-04 16:29:43 +11:00
Geoffrey McRae
ad7ac6540f
[host] d12: implement hdr16 to hdr10 conversion
2024-02-28 11:59:58 +11:00
Geoffrey McRae
0b210a280d
[all] update the copyright to 2024
2024-02-01 17:16:31 +11:00
Geoffrey McRae
cae4b2f4f9
[host] windows: fix compilation under gcc
2024-01-31 01:33:43 +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
adaf40e2bf
[host] dxgi: Fix d3d12 32-bit output
...
Fixes #1100
2024-01-27 20:07:52 +11:00
Geoffrey McRae
84dd68dd2b
[host] dxgi: correct 24-bit packed output height calculation bug
2024-01-27 11:14:04 +11:00
Geoffrey McRae
738a04d0bc
[host] dxgi: fix packed texture height calculation
2024-01-27 10:56:23 +11:00
Geoffrey McRae
2316a5e64d
[host] dxgi: ensure 24-bit packed output is properly aligned
2024-01-27 10:11:01 +11:00
Geoffrey McRae
c5cbb8aa46
[host] dxgi: enable 24-bit mode by default
...
General community feedback with this enabled has been positive and we
can now transition to enabling by default.
2024-01-27 02:28:09 +11:00
Geoffrey McRae
accf300c6c
[host] dxgi: fix failure to reset texture state on fast restarts
2023-11-15 17:31:37 +11:00
Geoffrey McRae
b14aad7118
[host] dxgi: remove uneeded variable + minor cosmetic changes
2023-11-12 06:36:04 +11:00
Geoffrey McRae
084ebe5035
[host] dxgi: fix potential buffer out of bounds access
2023-11-11 20:41:10 +11:00
Geoffrey McRae
d480b674ca
[host] dxgi: fix invalid array access via wrong variable
2023-11-11 20:37:58 +11:00
Geoffrey McRae
10e30eec57
[host] dxgi: fix possible null dereference
2023-11-11 20:36:53 +11:00
Geoffrey McRae
503efdd0d8
[host] dxgi: fix failure to call FreeLibrary for d3d12
2023-11-11 20:31:53 +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
86e8e99107
[all] add initial support for RGB24-bpp support
2023-11-10 06:28:05 +11:00
Geoffrey McRae
a455078e0f
[host] dxgi: dont alter the damage rect array when scaling
2023-11-10 06:28:05 +11:00
Geoffrey McRae
f8586fd063
[host] dxgi: fix RGB24 damage rect rounding bug
2023-11-10 06:28:05 +11:00
Geoffrey McRae
f991f994f0
[host] dxgi: rename cpu
to tex
2023-11-10 06:28:05 +11:00
Geoffrey McRae
772e0e3b4a
[host] dxgi: fix d3d11 invalid memory allocation for backend struct
2023-11-10 06:28:05 +11:00
Geoffrey McRae
fd79bb1333
[host] dxgi: add option to enable RGB24 packing support
2023-11-10 06:28:05 +11:00
Geoffrey McRae
d6519c4486
[host] dxgi: remove unused define
2023-11-10 06:28:05 +11:00
Geoffrey McRae
9fefbae749
[host] dxgi: make dxgi structs private again
2023-11-10 06:28:05 +11:00
Geoffrey McRae
fa561c121e
[host] dxgi: move and document dxgi_* exposed functions for backends
2023-11-10 06:28:05 +11:00
Geoffrey McRae
c2e3c37bab
[host] dxgi: remove no longer used member for copy backends
2023-11-10 06:28:05 +11:00
Geoffrey McRae
54bd08c3cb
[host] dxgi: decouple backends from the DXGI main struct
2023-11-10 06:28:05 +11:00
Geoffrey McRae
eb2796d40b
[host] dxgi: move the backend interface into a separate header
2023-11-10 06:28:05 +11:00
Geoffrey McRae
748c9c177e
[dxgi] increase the comRef global count
2023-11-10 06:28:05 +11:00
Geoffrey McRae
cc48257aeb
[dxgi] d3d12: fix incorrect mapping range
2023-11-10 06:28:05 +11:00
Geoffrey McRae
3838e1f996
[host] dxgi: fix the return status of the downsampler
2023-11-10 06:28:05 +11:00
Geoffrey McRae
881aa9e179
[host] dxgi: fix the d3d12 copy backend
2023-11-10 06:28:05 +11:00
Geoffrey McRae
9a2638bfa0
[host] dxgi: fix unbalanced scope pop
2023-11-10 06:28:05 +11:00
Geoffrey McRae
8d7d5ba8fd
[host] dxgi: fix comRef leak in the downsampler
2023-11-10 06:28:05 +11:00
Geoffrey McRae
09b6fee360
[host] dxgi: fix HDR content downsampling
2023-11-10 06:28:05 +11:00
Geoffrey McRae
561c45bcb9
[host] dxgi: fix support for non 24-bit BGR formats
2023-11-10 06:28:05 +11:00
Geoffrey McRae
5f613b09d6
[host] dxgi: implement downsampling to arbitrary sizes
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
Tudor Brindus
ea5b6b4026
[host] DXGI: implement damage-aware RGB24 copy
2023-11-10 06:28:05 +11:00
Tudor Brindus
6329779893
[host] DXGI: rescale RGB24 texture to 3/4ths the input width
...
Now that data isn't packed across rows, we can decrease the amount of
texture memory we require.
2023-11-10 06:28:05 +11:00
Tudor Brindus
3106d0e3e2
[host] DXGI: stop packing data across rows
...
This is a precursor to allowing damage-aware RGB24 copies.
2023-11-10 06:28:05 +11:00
Tudor Brindus
d44fc36fc4
[host] DXGI: stop rescaling RGB24 texture height
...
For the moment, this just increases texture memory usage, but does not
affect behavior.
In a future commit, I will modify the shaders to not pack data across
rows, in order to enable damage copies.
2023-11-10 06:28:05 +11:00
Tudor Brindus
c29404eea6
[host] DXGI: fixed swapped rows
and cols
variables
...
In practice this worked out because `rows = cols`, but this will change
in future commits as I implement RGB24 damage support.
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
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