Philip Rebohle
9edb81dec9
[dxvk] Fix resolve mode for late deferred resolve
...
Derp, this broke color image resolves in some (mostly D3D9) edge cases.
2025-03-22 01:17:51 +01:00
Philip Rebohle
0a7522cd26
[dxvk] Fix broken aspect check when finding deferred clears
2025-03-22 00:59:46 +01:00
Philip Rebohle
f355b1c30c
[dxvk] Only flush clears if image to use has any pending clears
...
We can reorder the clear after any operation that does not access
the image.
2025-03-22 00:28:21 +01:00
Philip Rebohle
86cf0a3e51
[dxvk] Add missing prepareImage call for copy/resolve clears
2025-03-21 22:21:52 +01:00
Philip Rebohle
779fc6625f
[dxvk] Enable VK_KHR_maintenance7 if available
2025-03-21 21:51:35 +01:00
Philip Rebohle
9aa2df2172
[dxvk] Use STORE_OP_NONE in resolve passes
2025-03-21 21:50:34 +01:00
Philip Rebohle
b341b95d10
[dxvk] Use STORE_OP_NONE for read-only depth or stencil aspects
2025-03-21 21:50:34 +01:00
Philip Rebohle
90ee5fe180
[dxvk] Re-enable secondary command buffers on desktop
2025-03-20 12:06:05 +01:00
Philip Rebohle
a5370e4f67
[util] Make AC Shadows app profile public
...
Game is out now.
2025-03-20 11:50:11 +01:00
Philip Rebohle
64c9dc91cf
[dxvk] Remove outdated sRGB-ness check in swapchain format selection
...
No reason to do this when we don't include sRGB formats in the format
compat list in the first place.
2025-03-17 23:44:02 +01:00
Philip Rebohle
14ac1eb129
[dxvk] Don't create swapchains with sRGB formats
...
Third-party software is broken and doesn't understand non-linear formats.
2025-03-17 20:05:19 +01:00
Philip Rebohle
223496eea4
[dxvk] Enable VK_KHR_swapchain_mutable_format if supported
2025-03-17 20:05:19 +01:00
Philip Rebohle
79d7b3720c
[meta] Change upstream for libdisplay-info submodule
2025-03-17 18:31:10 +01:00
Philip Rebohle
c49a151d3c
[dxvk] Fix image to image copies between overlapping subresources
...
This was broken for render targets because we would attempt to perform
multiple layout transitions on the same subresources at once.
2025-03-17 18:31:10 +01:00
WinterSnowfall
2ad721b46b
[d3d8/9] Validate D3DDEVTYPE on device creation and cap queries
2025-03-15 23:56:22 +01:00
Philip Rebohle
653532376c
[dxvk] Fix line rendering check
2025-03-15 12:56:09 +01:00
Philip Rebohle
22e709f3b3
[dxvk] Consider point-mode tessellation for GS topology
2025-03-15 12:56:09 +01:00
Philip Rebohle
6e4287efbe
[dxvk] Add shader flag for point-mode tessellation
2025-03-15 12:56:09 +01:00
Zhiyi Zhang
74eff25dc0
[wsi] Check more display mode flags when comparing them.
...
EnumDisplaySettings(..., ENUM_CURRENT_SETTINGS, ...) is guaranteed to have DM_DISPLAYORIENTATION,
DM_BITSPERPEL, DM_PELSWIDTH, DM_PELSHEIGHT, DM_DISPLAYFLAGS, DM_DISPLAYFREQUENCY, and DM_POSITION.
If we don't compare positions, then in Win32WsiDriver::restoreDisplayMode(), the original monitor
layout might not be restored. For example, a secondary 1080p monitor at (3840, 0) can be moved to
(1280, -1080) after the primary 4K monitor resolution changes to 720p and back to 4K. And due to the
secondary monitor having the same resolution, its position won't be restored before this patch.
Fix Rime (493200) fails to switch monitors in borderless mode in some cases for Proton 10 alpha.
Related to #2064 .
2025-03-14 10:46:00 +01:00
Philip Rebohle
29f33f04ab
[dxvk] Disable sparse zero buffer on pre-RDNA AMD hardware
2025-03-14 00:35:57 +01:00
Philip Rebohle
ad253b8a7e
[meta] Release 2.6
v2.6
2025-03-13 10:52:21 +01:00
Philip Rebohle
7c865b63e1
[meta] Update profile
2025-03-13 10:52:21 +01:00
Philip Rebohle
afbfee6cdd
[dxvk] Use stringstream directly in logFeatures
...
Apparently, the long parameter list broke on some compilers.
2025-03-11 17:00:59 +01:00
Philip Rebohle
05e26f512b
[dxvk,d3d11,d3d9] Refactor viewport updates
...
Might as well use the CS chunk array functionality for this.
2025-03-11 11:16:36 +01:00
Philip Rebohle
0498ac436e
[dxvk] Add method to access a specific CS chunk data element
2025-03-11 11:16:36 +01:00
Philip Rebohle
9888efac1b
[dxvk] Clamp scissor against render area
2025-03-11 11:16:36 +01:00
Robin Kertels
a59dde3821
[d3d9] Consolidate shader const related fields
2025-03-11 11:16:19 +01:00
Philip Rebohle
8a6a0590fd
[dxvk] Use resolveImageRp directly in flushResolves
...
We know that the resolve image is compatible with render pass resolves when
we try to fold the resolve into the render pass, so just take the shortcut.
2025-03-11 01:30:14 +01:00
Philip Rebohle
e868cf7449
[dxvk] Move resolve image usage checks out of actual implementations
...
Calling methods are responsible for this now.
2025-03-11 01:30:14 +01:00
Philip Rebohle
99093e6cd7
[dxvk] Remove resolveDepthStencilResolve method
2025-03-11 01:30:14 +01:00
Philip Rebohle
209b07f7db
[dxvk] Extend resolveImage to support depth-stencil resolves
...
Also require the format to be defined.
2025-03-11 01:30:14 +01:00
Philip Rebohle
30e34e25d3
[dxvk] Add convenience function to query default resolve mode
...
Removes some code duplication.
2025-03-11 01:30:14 +01:00
Philip Rebohle
fd9b561100
[dxvk] Don't use secondary command buffers on desktop drivers
...
Effectively reverts 84f2939b55cd4ce93ba76b08ec049eb5b0250003.
Apparently this not only breaks on ANV but also causes problems on
RADV for unknown reasons, so enabling this path by default does not
actually seem to be viable.
2025-03-10 00:09:08 +01:00
Philip Rebohle
443e7cc99d
[dxvk] Actually acount for image offset too
...
Derp, don't just push to master next time.
2025-03-09 15:10:16 +01:00
Philip Rebohle
b6af4f04e4
[dxvk] Clamp region extent for compressed image <-> buffer copies
...
Silences a validation error in Star Trek Online.
2025-03-09 15:03:43 +01:00
Philip Rebohle
9dbf620165
[dxbc] Do not export PointSize on maintenance5-enabled drivers
...
... or on broken drivers that just explode for no reason at all.
2025-03-09 12:05:50 +01:00
WinterSnowfall
4543c76e39
[dxso] Fix uninitialized variables and other static analysis hints
2025-03-09 11:46:35 +01:00
WinterSnowfall
ed87cd58a7
[d3d9] More or less minor static analysis nits
2025-03-09 11:46:35 +01:00
WinterSnowfall
134fd299b0
[d3d8] Minor static analysis nits
2025-03-09 11:46:35 +01:00
Philip Rebohle
991878b9f2
[dxvk] Improve swapchain scaling
2025-03-09 11:46:24 +01:00
Robin Kertels
1b529c711c
[d3d9] Remove mentions of SWAPEFFECT_COPY_VSYNC
...
It doesn't exist in desktop D3D9 and
we fail device creation with this value anyway.
2025-03-08 13:32:23 +01:00
Robin Kertels
cd4091877e
[d3d9] Remove misleading comment
2025-03-08 13:32:23 +01:00
Robin Kertels
ce2fc3171e
[util] Enable extra frontbuffer for Silent Hill 2
2025-03-08 13:32:23 +01:00
Robin Kertels
fe10e44385
[d3d9] Add option for extra frame buffer to fix GetFrameBufferData
2025-03-08 13:32:23 +01:00
WinterSnowfall
3f7460931a
[d3d8] Enforce the pCaps->MaxVertexShaderConst limit on VS creation
2025-03-08 12:41:02 +01:00
WinterSnowfall
e36121bf50
[d3d9] CheckDeviceFormat will error out for Vertex/IndexBuffer RTypes
2025-03-08 12:41:02 +01:00
WinterSnowfall
066fd1bb66
[d3d9] Validate block aligned format mip > 0 dimensions as well
2025-03-08 12:41:02 +01:00
WinterSnowfall
3d0f1583ca
[d3d8] Move D3D8 options description into dxvk.conf
2025-03-08 12:41:02 +01:00
WinterSnowfall
ed071005e9
[d3d8/9] Enforce SM1 when in D3D8 compatibility mode
2025-03-08 12:41:02 +01:00
WinterSnowfall
bbdab683a7
[dxvk/d3d9] Adjust/remove several loggers
2025-03-08 12:41:02 +01:00