1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-04-08 08:53:59 +02:00

6814 Commits

Author SHA1 Message Date
Philip Rebohle
6a008513f7 [dxvk] Require and always enable maintenance5 feature
Now that RenderDoc has support, there's not much of a reason not to.
2025-03-24 12:52:38 +01:00
Philip Rebohle
a8ad410c83 [dxvk] Always enable and require maintenance4 feature 2025-03-24 03:49:50 +01:00
Philip Rebohle
1be2354e04 [dxvk,d3d9,d3d11] Refactor input layout objects 2025-03-24 03:49:50 +01:00
Philip Rebohle
86c74eb4d5 [dxvk,d3d9,d3d11] Refactor input assembly state object 2025-03-24 03:49:50 +01:00
Philip Rebohle
ebee4ef5ae [dxvk,d3d9,d3d11] Refactor rasterizer state object 2025-03-24 03:49:50 +01:00
Philip Rebohle
17a1e3f5c6 [dxvk,d3d9,d3d11] Normalize blend state in front-end 2025-03-24 03:49:50 +01:00
Philip Rebohle
331f5b1299 [dxvk,d3d9,d3d11] Refactor blend state object 2025-03-24 03:49:50 +01:00
Philip Rebohle
1070e95618 [dxvk,d3d9,d3d11] Refactor logic op state object 2025-03-24 03:49:50 +01:00
Philip Rebohle
9985f9fa7b [dxvk,d3d9,d3d11] Refactor multisample state object 2025-03-24 03:49:50 +01:00
Philip Rebohle
fe30ceb6f8 [dxvk,d3d9,d3d11] Normalize depth-stencil state in front-end
Reduces some unnecessary pipeline look-ups and also helps with
recognizing read-only depth-stencil attachments in more scenarios.
2025-03-24 03:49:50 +01:00
Philip Rebohle
84d1815707 [dxvk,d3d9,d3d11] Refactor depth-stencil state object
No reason to pass 72 bytes around when we can do with 10.
2025-03-24 03:49:50 +01:00
Philip Rebohle
e14f7f4078 [dxvk] Properly suspend render pass in various functions
Otherwise we'll flush clears for no reason at all.
2025-03-24 03:45:54 +01:00
Philip Rebohle
c421560da9 [dxvk] Fix some prepareImage inconsistencies
Need to check the real subresources since most functions operate
on those. Only semi-relevant for multi-planar and 3D images.
2025-03-24 03:39:45 +01:00
Philip Rebohle
a0e6ca3cc0 [dxvk] Adjust secondary command buffer logic in tiler mode
Enables usage for render passes with multiple color attachments but
no depth. This way we can mask out unused attachments.
2025-03-24 03:29:53 +01:00
Philip Rebohle
a6af6e0a5f [dxvk] Optimize load/store ops based on attachment usage 2025-03-24 03:29:53 +01:00
Philip Rebohle
8dbe6af8a3 [dxvk] Track attachment usage throughout a render pass 2025-03-24 03:29:53 +01:00
Philip Rebohle
bd27980ae8 [dxvk] Compute attachment usage mask for each pipeline instance 2025-03-24 03:29:52 +01:00
Philip Rebohle
97cff85280 [dxvk] Introduce DxvkAttachmentMask 2025-03-24 03:29:52 +01:00
Philip Rebohle
12c98161ba [dxvk] Introduce DxvkGraphicsPipelineHandle 2025-03-24 03:29:52 +01:00
Philip Rebohle
31529b8bab [dxvk] Use clearRenderTarget for discards as well 2025-03-24 03:29:52 +01:00
Philip Rebohle
496091815e [dxvk] Defer clears during render passes 2025-03-24 03:29:52 +01:00
Philip Rebohle
3417c559c8 [dxvk] Add helper functions to do handle deferred clears while rendering 2025-03-24 03:29:52 +01:00
Philip Rebohle
9cac7b0447 [dxvk] Prepare for supporting deferred clears during rendering 2025-03-24 03:24:54 +01:00
Philip Rebohle
d6208bba65 [dxvk] Enable VK_KHR_load_store_op_none if available
STORE_OP_NONE is a core feature in 1.3, but LOAD_OP_NONE is not.
2025-03-24 03:24:54 +01:00
Philip Rebohle
e6ef72b63d [dxbc] Always export point size on ANV
AC:Origins reportedly breaks otherwise, and presumably other games too.
2025-03-24 00:26:56 +01:00
Philip Rebohle
1a8030a54a [d3d11] Fix A8 UAV clears 2025-03-24 00:25:17 +01:00
Philip Rebohle
905cf86d82 [d3d11] Fix image layout for transfer-only images
Silences validation errors in some rare scenarios.
2025-03-24 00:14:47 +01:00
Philip Rebohle
bdb9e4f814 [d3d9] Clamp depth bounds to 0..1 range
Silences validation errors in The Witcher 2.
2025-03-23 20:17:54 +01:00
Philip Rebohle
f6fdb441cf [dxvk] Free zero buffer if it goes unused 2025-03-23 19:11:00 +01:00
Philip Rebohle
0502d01738 [dxvk] Clear entire allocated memory region for compressed images
At least this way we don't need a zero buffer most of the time.
2025-03-23 19:11:00 +01:00
Philip Rebohle
d3a231413f [dxvk] Remove subresource parameter from initImage
We're always initializing the entire image anyway.
2025-03-23 19:11:00 +01:00
Philip Rebohle
f7ae4549d4 [dxvk] Clear entire allocated memory region when initializing buffers 2025-03-23 19:11:00 +01:00
Philip Rebohle
f17188395b [dxvk] Don't use sparse zero buffer
Too broken on too many drivers.
2025-03-23 19:11:00 +01:00
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