Philip Rebohle
9f7a5a077f
[dxvk] Fix broken row/slice alignment in buffer<->image copies
...
If the specified row or slice alignment matches the row size exactly
but is not a power of two, we could accidentally screw up the alignment.
2021-06-24 21:07:47 +02:00
Philip Rebohle
ba4938e201
[dxvk] Add slice alignment to copyImageToBuffer
2021-06-24 21:07:47 +02:00
Philip Rebohle
4840cdaf8c
[dxvk] Add slice alignment to copyBufferToImage
2021-06-24 21:07:45 +02:00
Philip Rebohle
87d32a234d
[dxvk] Handle discard aspects correctly when performing clears
...
Should fix an Nvidia driver crash, see #2118 .
2021-06-24 17:15:52 +02:00
Robin Kertels
8a93bbd8fa
[d3d9] Make sure clear extent does not exceed rt size
2021-06-19 16:11:11 -07:00
Robin Kertels
7dd443802c
[util] Report Nvidia GPU to Far Cry 1
2021-06-19 10:43:31 -07:00
Robin Kertels
d7c4afbeba
[d3d9] Pass correct element size to texture converter
2021-06-19 10:43:31 -07:00
Philip Rebohle
81664fce44
[dxbc] Remove atomic counter workaround for ancient Mesa versions
...
No one should be using Mesa 19.0 at this point.
2021-06-18 15:44:58 +02:00
Philip Rebohle
7beb344f6f
[dxbc] Remove dxvk.useEarlyDiscard option
...
No longer relevant on drivers that support DemoteToHelperInvocation.
Closes #2109 .
2021-06-18 15:44:27 +02:00
Georg Lehmann
6b8ab4fd38
[d3d11] Remove mingw-w64 < 6 workarounds
2021-06-15 20:41:34 +02:00
Philip Rebohle
dca63464b4
[meta] Release 1.9
2021-06-15 15:32:19 +02:00
Georg Lehmann
7a688bd74c
[util] force 60fps for Demon Stone
2021-06-15 02:54:14 -07:00
Samuel Pitoiset
dba539471d
[dxso] Remove old RADV/LLVM workaround for early discard
...
This workaround has been removed for DXBC few weeks ago. Note that
RADV/ACO is no longer a thing with latest Mesa git anyways.
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
2021-06-15 01:07:35 -07:00
Philip Rebohle
de05728c8c
[dxvk] Check view format as well when deferring clears
...
Otherwise, we may accidentally clear to an incorrect value.
Fixes #2100 .
2021-06-14 16:41:31 +02:00
Philip Rebohle
30a1a29aa6
[util] Add DXVK_FRAME_RATE environment variable to limit frame rate
2021-06-12 13:50:08 +02:00
Philip Rebohle
12c51f1c3d
[util] Enable frame rate limiter for Nier Replicant
...
The game does not run properly at frame rates above 60 and uses the sync
interval in a weird way that sometimes leads to the game being stuck at
31 FPS, and in the menus it displays content at weird refresh rates that
it was clearly not designed to run at.
2021-06-12 13:50:08 +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
Philip Rebohle
8b67ef724e
[d3d11] Add frame rate limiter and dxgi.maxFrameRate option
2021-06-12 13:50:08 +02:00
Philip Rebohle
4f5f85925b
[d3d9] Add frame rate limiter and d3d9.maxFrameRate option
2021-06-12 13:50:08 +02:00
Philip Rebohle
b537f19a3c
[vulkan] Add frame rate limiter to Vulkan presenter
2021-06-12 13:50:08 +02:00
Philip Rebohle
a16c861358
[util] Implement frame rate limiter
...
This tries to be sophisticated and disables itself when it notices
that the frame rate is going to be limited by presentation anyway.
2021-06-12 13:50:08 +02:00
Robin Kertels
6f468ec5e0
[d3d9] Fix texture converter
2021-06-12 03:48:01 -07:00
Philip Rebohle
9eeaedeeb7
[util] Remove FFXIV workaround
...
Looks like whatever caused this in Mesa got fixed quite a while ago.
2021-06-11 01:59:56 +02:00
Thomas Crider
63fd2b9d32
[util] Enable d3d9.deferSurfaceCreation for Ninja Gaiden Sigma/Sigma 2
...
Co-authored-by: Georg Lehmann <49841484+DadSchoorse@users.noreply.github.com>
2021-06-10 01:35:48 -07:00
Joshua Ashton
01033af9a4
[build] Avoid Wine Mono and Gecko installs in the setup script
...
Co-authored-by: Alexis Peypelut <iroalexis@outlook.fr>
2021-06-06 09:31:01 -07:00
Joshua Ashton
f1a9d72d38
[d3d9] Don't scale z to [0, 1] for POSITIONT
...
I originally thought the depth clipping region was always [0, 1] when I first implemented this nearly 2 years ago.
The depth clipping region is already in the viewport's depth range, so just don't do anything here if we are z-testing.
( We still need to keep the flattening around for when ztest is disabled though :( )
Fixes : #2056
2021-06-06 09:31:01 -07:00
Philip Rebohle
fe00919d5f
[util] Handle upper-case file extensions correctly
2021-06-06 03:57:15 -07:00
Joshua Ashton
f4cbc9ae9d
[util] Enable emulateUMA for GTA IV
...
This game thinks we are on Intel, so report memory like they do.
2021-06-01 19:26:41 +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
fe0dc2d579
[dxvk] Move isUnifiedMemoryArchitecture to adapter
2021-06-01 19:26:41 +02:00
Joshua Ashton
e624cfa0b4
[util] Return custom device description for Crazy Machines 3
...
Otherwise the game decides it wants to crash.
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
Joshua Ashton
747834e9b0
[d3d9] Bump frame id before presentation
2021-06-01 18:31:29 +02:00
Joshua Ashton
e64a8ee61a
[d3d11] Bump frame id before presentation
2021-06-01 18:31:29 +02:00
Joshua Ashton
fcb7639106
[d3d9] Synchronize frame latency on latency change
2021-06-01 18:16:35 +02:00
Joshua Ashton
787de33022
[d3d9] Sync frame latency after presentation
2021-06-01 18:16:35 +02:00
Joshua Ashton
f98a45b305
[d3d11] Sync frame latency after presentation
2021-06-01 18:16:35 +02:00
Philip Rebohle
0fe8f2e40c
[vulkan] Acquire next image immediately after presentation
...
vkAcquireNextImageKHR is a blocking call, so doing this immediately after
presentation may reduce the amount of time that passes between the application
requesing presentation and presentation actually happening on the Vulkan device.
Idea based on PR #2075 .
2021-06-01 04:52:09 +02:00
Philip Rebohle
0b88d0deab
[vulkan] Remove getSyncSemaphores from presenter
...
Instead, return the semaphores in acquireNextImage.
2021-06-01 04:32:50 +02:00
Philip Rebohle
253884a8c7
[vulkan] Remove fence from presenter
...
We don't use these anywhere.
2021-06-01 03:51:16 +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
e7897e8289
[tests] Add YUY2 video processor test
2021-05-31 15:55:08 +02:00
Philip Rebohle
383cde2051
[d3d11] Allow creation of render target views for planar images
2021-05-30 19:42:44 +02:00
Philip Rebohle
01051bac99
[d3d11] Allow creation of unordered access views for planar images
2021-05-30 19:42:44 +02:00
Philip Rebohle
6d72bc94f4
[d3d11] Allow creation of shader resource views for planar images
2021-05-30 19:42:44 +02:00
Philip Rebohle
2740030fca
[d3d11] Support video processor output views in ClearView
2021-05-30 19:42:44 +02:00
Philip Rebohle
b04721f9a2
[d3d11] Use staging buffer for MapImage on deferred contexts
2021-05-30 19:42:44 +02:00
Philip Rebohle
ff9d6e3226
[d3d11] Use staging buffer and copyBufferToImage for UpdateSubresource
...
Reduces number of copies and also fixes problems with multi-plane formats.
2021-05-30 19:42:44 +02:00
Philip Rebohle
e749a4a4ac
[d3d11] Create shadow copy of video input images if sampled bit is not set
...
This can happen with RGB input views since not having any bind flags set
is legal for video input views, and SHADER_RESOURCE is actually explicitly
disallowed, but we don't always want to set sampled bit for those resources.
2021-05-30 19:42:44 +02:00