Alex
1179bdca32
Merge 15da4f089034cf4ec4a6ef9cb050870f3045f7a9 into ad253b8a7e20b7cf16fce7d1c505928a434eac29
2025-03-13 13:17:21 -04: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
WinterSnowfall
0527d2ccc5
[d3d8] Validate normals component count for FVF shaders
2025-03-08 12:41:02 +01:00
Philip Rebohle
35e2ee3518
[dxvk] Fix storage image synchronization in graphics shaders
...
Bit of a derp when stacking the MSAA work on top of the other work.
2025-03-07 22:12:10 +01:00
Philip Rebohle
b6a7e4880d
[dxvk] Highlight multisampled render passes when debugging
2025-03-07 20:35:32 +01:00
Philip Rebohle
84f2939b55
[dxvk] Also try to use render pass resolves on desktop drivers
...
Elides redundant back-to-back resolves in some games, and reduces
some barrier spam when the app resolves multiple images.
2025-03-07 20:35:32 +01:00
Philip Rebohle
7503a66789
[dxvk] Always use SAMPLE_ZERO for implicit resolves
2025-03-07 20:35:32 +01:00
Philip Rebohle
be213e46f9
[dxvk] Refactor resolve shaders
...
Removes some code duplication while adding support for non-AVERAGE
resolves for plain color images.
Also nuke the AMD path since it is no longer used.
2025-03-07 20:35:32 +01:00
Philip Rebohle
bd2b8cb823
[dxvk] Always prefer render pass resolves
...
Current AMDVLK has faster render pass resolves than what we can do
with fmask, and our render pass resolve path can deal with all types
of color images now if we pass the correct resolve mode.
Keep the fb path for non-standard depth resolve modes as well as
swapchain blits with composition, but otherwise there is no reason
to use this path by default anymore.
2025-03-07 20:35:32 +01:00
Philip Rebohle
d60afd449f
[dxvk] Use latched image view properties when possible
...
Reduces pointer chasing.
2025-03-07 20:35:32 +01:00
Philip Rebohle
c100d30bef
[dxvk] Add implicit resolve when app tries to sample multisampled image
2025-03-07 20:35:32 +01:00
Philip Rebohle
b5ea78479e
[dxvk] Refactor depth-stencil resolve to also work on color images
2025-03-07 20:35:32 +01:00
Philip Rebohle
bb1debc00e
[dxvk] Add flag to avoid dedicated allocations for short-lived images
2025-03-07 20:35:32 +01:00
Philip Rebohle
b184359a3f
[dxvk] Add flag to avoid creating dedicated allocations
2025-03-07 20:35:32 +01:00
Philip Rebohle
52a27ac4b5
[dxvk] Store various image properties inside the view
2025-03-07 20:35:32 +01:00
Philip Rebohle
d3e6634d0a
[dxvk] Add binding flag for multisampled images
2025-03-07 20:35:32 +01:00
Philip Rebohle
34e5cc2aca
[dxvk] Add separate flag to forcibly end a render pass
...
Otherwise, if the app binds the same set of render targets again,
the dirty framebuffer flag will get cleared.
2025-03-07 20:35:32 +01:00
Philip Rebohle
91cde7f9b9
[d3d9] Remove double presents with SyncInterval > 1
2025-03-07 20:32:32 +01:00
Philip Rebohle
9597acc224
[util] Add missing returns to small_vector
2025-03-07 16:15:42 +01:00
Philip Rebohle
3558b4c3da
[dxvk] Do not dirty the pipeline when starting the render pass
...
Redundant, since the pipeline update happens outside of a render pass
anyway and thus does not record any Vulkan commands.
All other state should still be dirtied since we might use secondary
command buffers for render passes.
2025-03-07 13:07:32 +01:00
Philip Rebohle
659205b5a6
[dxvk] Fix tracking of graphics pipeline side effects inside a render pass
...
Previously, we wouldn't track the first draw correctly in all cases because
the side effect flag would get reset when ending a previous render pass.
2025-03-07 12:43:31 +01:00