Joshua Ashton
be33ccbce9
[dxgi] Revert 538b132490967239e2d673659789ea9b76698ee3
...
This breaks things for 32-bit, but it really shouldn't. My hypothesis currently is that the .lib generated is bogus, but the exports in the actual DLL are correct.
2022-08-21 20:28:40 +00:00
Joshua Ashton
a4261ddd14
[dxgi] Use high_resolution_clock get_counter instead of QPC for SyncQPCTime
...
Abstracts this across platforms
2022-08-21 22:24:06 +02:00
Joshua Ashton
8b7e0bc2fd
[dxgi] Include win32 compat headers where applicable
2022-08-21 21:40:55 +02:00
Joshua Ashton
f0f4258be3
[dxgi] Correct DLLEXPORT for native builds
2022-08-21 21:36:50 +02:00
Joshua Ashton
538b132490
[dxgi] Don't declspec dllexport on MinGW builds
...
Fixes ordinal exporting on MinGW on 32-bit builds.
Mirrors this D3D9 commit here: 904d3e6c9014bff7aa0843630b009c51879a1d06
2022-08-21 21:36:50 +02:00
Joshua Ashton
fad6f764ea
[dxgi] Remove unused DEVMODE variable
2022-08-21 21:35:09 +02:00
Joshua Ashton
e51c196ee9
[dxgi] Remove MonitorEnumProc and MonitorEnumInfo
...
Not used anymore, replaced by WSI abstraction.
2022-08-21 21:35:09 +02:00
Joshua Ashton
16ff9b48cd
[dxgi] Enumerate interlaced modes if requested
2022-08-20 20:27:07 +02:00
Joshua Ashton
bc8e75fdfa
[dxgi] Make adapter code use new wsi interface
2022-08-20 20:27:07 +02:00
Joshua Ashton
59b943cf12
[dxgi] Remove unused util_monitor include
2022-08-20 20:27:07 +02:00
Joshua Ashton
21744198e0
[dxgi] Make swapchain use new wsi interface
2022-08-20 20:27:07 +02:00
Joshua Ashton
e13a9f9cf6
[dxgi] Make output code use new wsi interface
2022-08-20 20:27:07 +02:00
Joshua Ashton
71a630801e
[dxgi] Add helpers for new wsi interface
2022-08-20 20:27:07 +02:00
Philip Rebohle
13152088d4
[dxgi] Use new format support queries to initialize format table
2022-08-17 15:39:03 +02:00
Philip Rebohle
0d33d063ca
[dxvk] Remove device LUID workaround
...
winevulkan properly supports this now.
2022-08-11 16:01:53 +02:00
Paul Gofman
59441b1ff5
[dxgi] Also support use after free in IDXGISwapChain::SetFullscreenState()
2022-08-09 23:10:50 +02:00
Philip Rebohle
ec7de66419
[util] Use transcodeString in tows and fromws helpers
2022-07-30 20:30:32 +02:00
Philip Rebohle
bb3c0b9707
[dxgi] Use transcodeString to convert adapter name
2022-07-30 20:30:32 +02:00
Philip Rebohle
6c5f73ac26
[dxvk] Reintroduce VkPhysicalDeviceIDProperties
...
We need this to get the device LUID. Wine does not fill in the
LUID properties in VkPhysicalDeviceVulkan11Properties right now.
Fixes DLSS not working, as well as other potential issues.
2022-07-26 22:38:33 +02:00
Philip Rebohle
d6d7d5137b
[dxvk] Drop VK_EXT_4444_formats
...
These formats are core in Vulkan 1.3 and all relevant drivers support them.
2022-07-14 21:21:34 +02:00
Philip Rebohle
2774a04195
[dxvk] Use VkPhysicalDeviceVulkan11{Features,Properties} where appropriate
2022-07-14 21:21:34 +02:00
Zhiyi Zhang
8147844aef
[dxgi] Return DXGI_ERROR_INVALID_CALL for invalid IDXGIAdapter3::RegisterVideoMemoryBudgetChangeNotificationEvent() parameters
...
According to wine tests 14237e321b
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
2022-05-25 18:44:20 +02:00
Philip Rebohle
a85f7c48a5
[d3d11] Make ClearUnorderedAccessViewUINT fallback more generic
2022-04-25 17:34:45 +02:00
Philip Rebohle
8823e4bb3d
[dxgi] Work around swapchain use-after-free bugs
...
Affects Divinity: Original Sin Enhanced Edition. Requires Wine hack to
delay memory deallocation to not crash during resolution changes.
2022-03-23 15:09:39 +01:00
Georg Lehmann
2550cff149
[build] Cleanup build system.
...
No changes except dropping support for msvc before 15.3.
2022-03-17 01:38:58 +00:00
Liam Middlebrook
f92c6ae859
[dxgi] Add DXVK_ENABLE_NVAPI envvar
...
Add a new environment variable DXVK_ENABLE_NVAPI as an environment-level
override for 'nvapiHack'. This will allow for DLSS (and other
NvAPI-backed features) to be available without the user manually writing
a configuration file, allowing for more seamless integration with
Proton's launch script.
2022-03-16 13:06:25 +01:00
Philip Rebohle
c87660480d
[d3d11] Reimplement R11G11B10 UAV clears without R32 views
2022-03-12 16:23:42 +01:00
Philip Rebohle
b53c3057e1
[dxgi] Fix refresh rate filtering in FindClosestMatchingMode
...
We need to operate on the pre-filtered list, or otherwise we may run into
problems where not all refresh rates are supported for all display modes.
2022-01-10 14:45:19 +01:00
Philip Rebohle
b6cd6aaecc
[d3d11] Fix depth aspect not being applied to some D16_UNORM views
2021-11-29 15:39:41 +01:00
Paul Gofman
24eb875f02
[dxgi] Return success from DxgiSwapChain::Present1() if window is destroyed
2021-10-07 20:34:37 +02:00
Philip Rebohle
aa4b7c9f92
[dxvk] Rework 32-bit check
2021-10-01 14:18:42 +02:00
Georg Lehmann
8844dc2091
[dxgi] Downgrade format fall back warnings to info
2021-08-09 13:17:43 +02:00
Connor Abbott
aae0e57a46
Don't add def file as an object
...
This is unnecessary even on mingw, and leads to duplicating the .def
file on the linking command line which winegcc complains about.
2021-07-03 14:28:28 +02:00
Connor Abbott
2988875e93
[dxgi] Call QueryPerformanceCounter directly
...
dxvk::high_resolution_clock is meant to be a wrapper around the C++ time
library, and getCounter() is (AFAIK) an internal thing so calling it
directly is odd. On winelib this redirects to the host's implementation,
which means this fails to compile. Since this is a Windows API and not
for internal usage just call the Windows API function directly.
2021-07-03 14:28:28 +02:00
Philip Rebohle
cd8a2bcfcd
[dxvk] Use custom sync primitives
2021-06-29 00:51:20 +02:00
Philip Rebohle
6044e63eb0
[dxgi] Notify presenter about display mode changes
2021-06-12 13:50:08 +02:00
Philip Rebohle
e281eee795
[dxgi] Add NotifyModeChange method to IDXGIVkSwapChain
2021-06-12 13:50:08 +02:00
Joshua Ashton
15e0594ec4
[dxgi] Add emulateUMA option
...
Some games think we are on Intel given a lack of NVAPI or AGS/atiadlxx support. Report our device memory as shared memory, and some small amount for a "carveout".
2021-06-01 19:26:41 +02:00
Joshua Ashton
1d4c540b21
[dxgi] Add custom device description option
2021-06-01 19:26:41 +02:00
Philip Rebohle
0af7229b8e
[util] Restore display modes of all monitors in RestoreMonitorDisplayMode
...
Fixes #2064 .
2021-06-01 01:48:12 +02:00
Philip Rebohle
2764f4abb5
[dxgi] Add format mapping for DXGI_FORMAT_AYUV
2021-05-30 19:42:43 +02:00
Philip Rebohle
d859361a37
[dxgi] Add format mapping for DXGI_FORMAT_YUY2
...
And fix some existing 422 mappings.
2021-05-30 19:42:43 +02:00
Philip Rebohle
9b236078c2
[dxgi] Add format mapping for DXGI_FORMAT_NV12 and DXGI_FORMAT_420_OPAQUE
2021-05-30 19:42:43 +02:00
Joshua Ashton
c51080068e
[dxgi] Handle DXGI_PRESENT_TEST and failures in GetFrameStatistics
2021-05-20 23:02:07 +01:00
Philip Rebohle
401edc53fe
[dxgi] Show warning in DxgiOutput::GetFrameStatistics
2021-05-20 22:27:36 +01:00
Philip Rebohle
db3654a07f
[dxgi] Implement present count and frame statistics for swap chains
2021-05-20 22:27:36 +01:00
Joshua Ashton
a690210eae
[dxgi] Implement swapchain dispatcher
...
Some overlays and hooks check if the vtable funcs reside in the dxgi.dll module.
Fixes : #1996
2021-03-30 17:48:10 +02:00
Joshua Ashton
0367bf95c4
[build] MSVC check cleanup
2021-03-03 18:57:42 +01:00
Philip Rebohle
148272fbce
[d3d11] Use DxvkSwapchainBlitter for presentation
2021-02-27 14:54:14 +00:00
Philip Rebohle
5d4d32c613
[d3d11] Remove explicit spec constant for gamma texture
...
No longer needed.
2021-02-21 02:20:14 +01:00