WinterSnowfall
35352b9c52
[d3d8] Set D3D8 compatibility at D3D9 interface level
2024-11-02 18:07:33 +01:00
WinterSnowfall
11d5f9ee36
[d3d8] State block recording validations
2024-11-02 18:07:33 +01:00
WinterSnowfall
0e6be8a48b
[d3d8/9] Add several Set/GetPrivateData validations
2024-11-02 18:07:33 +01:00
Robin Kertels
48d8e7c402
[d3d9] Improve code readability with comments
2024-11-02 17:48:13 +01:00
Robin Kertels
19fea8c48d
[d3d9] Move remaining texture bitmask updates to function
2024-11-02 17:48:13 +01:00
Robin Kertels
8d10bfecd4
[d3d9] Remove unused readonly bitfield
2024-11-02 17:48:13 +01:00
WinterSnowfall
c606ab03e8
[util] Re-enable direct buffer mapping for Rayman 3
2024-11-02 15:41:34 +01:00
WinterSnowfall
f74b2cd6c6
[d3d9] Order modes descending by refresh rate
2024-10-31 20:37:04 +01:00
WinterSnowfall
6e43bf6d61
[util] Include Prince of Persia main executable
2024-10-31 14:57:32 +01:00
Philip Rebohle
d4f25c81be
[d3d11] Remove d3d11.maxImplicitDiscardSize option
2024-10-31 12:13:27 +01:00
Philip Rebohle
f9bb8f0ad5
[d3d11] Consider discards when throttling immediate context
2024-10-31 12:13:26 +01:00
Philip Rebohle
65aa74aa7f
[hud] Fix off-by-one error in memory type enumeration
2024-10-31 12:12:31 +01:00
Philip Rebohle
a91afc3a2f
[d3d11] Do not touch row/depth pitch on failed map
...
Fixes a wine test.
2024-10-30 23:37:54 +01:00
Philip Rebohle
f0e9138886
[d3d11] Fix error return on MAP_WRITE_NO_OVERWRITE on deferred context
...
Fixes a wine test.
2024-10-30 23:37:54 +01:00
Philip Rebohle
67c5ab87f9
[d3d11] Add missing fragment shader stage to mapped image buffers
...
Relevant when uploading depth-stencil images.
2024-10-30 23:37:54 +01:00
Philip Rebohle
8ee7031742
[d3d11] Simplify InitHostVisibleBuffer
2024-10-30 23:37:54 +01:00
Philip Rebohle
223691b7aa
[d3d11] Use device fence wait in ThrottleAllocation
2024-10-30 23:37:54 +01:00
Philip Rebohle
84ce80f931
[d3d9] Use new fence wait function in WaitStagingBuffer
2024-10-30 23:37:54 +01:00
Philip Rebohle
85684109b3
[dxvk] Add method to wait for fence as a GPU sync point
2024-10-30 23:37:54 +01:00
Philip Rebohle
3c389ae06b
[dxvk] Adjust chunk size logic for mapped memory types
...
Total War Warhammer III discards a 48MB image every frame, so hitting
the dedicated allocation path pretty much at random leads to issues.
2024-10-30 23:37:54 +01:00
Philip Rebohle
ff78112271
[include] Add missing D3D11 error definition for native
2024-10-30 10:51:11 +01:00
Philip Rebohle
e41b1a11b2
[dxvk] Also add tracking ID to sampler objects
2024-10-30 09:42:53 +01:00
Philip Rebohle
0e14fff749
[dxvk] Introduce tracking ID for resource tracking
...
Replaces the existing bit masks, which is possible now because the
CS thread is the only place where submissions happen now.
This way we only count each resource once per submission, or twice
in case a read access is followed by a write.
This also fixes a potential tracking bug with shader-writeable resources.
2024-10-30 09:41:49 +01:00
Philip Rebohle
10fac66007
[dxvk] Don't override tracked write with a read
...
Fixes a regression in Control.
2024-10-30 03:39:45 +01:00
Jeff
201e1628b0
[d3d9] Add ID3D9VkInteropTexture to volumes
2024-10-30 02:17:35 +01:00
Philip Rebohle
e499f2e081
[d3d11] Fix potential crash when mapping a default image fails
...
This also marginally shortens common code paths.
2024-10-29 18:05:14 +01:00
Philip Rebohle
c2928ab3e2
[dxvk] Increment stat counters in command list rather than context
...
Might change some numbers, but it's closer to reality.
2024-10-28 23:03:46 +01:00
Philip Rebohle
7cd8a14673
[dxvk] Initialize additional command buffers on demand
...
The vast majority of submissions will only use one or two command buffers
rather than all five, and only the main command buffer will almost always
actually be used. This also saves us a bunch of CPU-side tracking.
2024-10-28 23:03:46 +01:00
Philip Rebohle
34b82a2b5b
[dxvk] Add dedicated command buffers for initial layout transitions
...
This helps batch initial layout transitions for image uploads.
2024-10-28 23:03:46 +01:00
Philip Rebohle
d85cabe457
[dxvk] Refactor command buffer allocation
2024-10-28 23:03:46 +01:00
Philip Rebohle
b5e5d7a498
[dxvk] Use out-of-order transfer helper in clearImageViewCs
...
Covers image-related ClearUAV use cases.
2024-10-28 23:03:46 +01:00
Philip Rebohle
c795415c39
[dxvk] Use out-of-order transfer helper in clearBufferView
...
Covers some ClearUAV / ClearView use cases involving buffers.
2024-10-28 23:03:46 +01:00
Philip Rebohle
301f06bdfb
[dxvk] Use out-of-order transfer helper in copyBufferToImage
2024-10-28 23:03:46 +01:00
Philip Rebohle
e69f09175f
[dxvk] Use out-of-order transfer helper in updateBuffer
2024-10-28 23:03:46 +01:00
Philip Rebohle
28a1077c06
[dxvk] Use out-of-order transfer helper in copyBuffer
2024-10-28 23:03:46 +01:00
Philip Rebohle
8269b93f51
[dxvk] Use out-of-order transfer helper in clearBuffer
2024-10-28 23:03:46 +01:00
Philip Rebohle
c8ab88e8f5
[dxvk] Add helper for out-of-order resource transfers
2024-10-28 23:03:46 +01:00
Philip Rebohle
f0054e7e65
[dxvk] Add command list tracking to resource
2024-10-28 23:03:46 +01:00
Philip Rebohle
dd6d82e1ce
[dxvk] Fix nonsensical layout check in ensureImageCompatibility
...
Derp, this fixes some unnecessary barriers.
2024-10-28 23:03:46 +01:00
Philip Rebohle
0fd00087e9
[dxvk] Filter out BDA usage for buffer invalidation early exit
2024-10-28 00:03:26 +01:00
Ethan Lee
469025d234
native: Add SDL3 WSI
...
Co-authored-by: Philip Rebohle <philip.rebohle@tu-dortmund.de>
2024-10-27 12:58:22 +01:00
Philip Rebohle
0259f55285
wsi: Pass window state to setWindowMode
2024-10-27 12:58:22 +01:00
WinterSnowfall
5ad84563dd
[d3d9] Improve the naming of GetFormatBlockSize helper
2024-10-27 12:36:33 +01:00
WinterSnowfall
7ffe77f7c4
[d3d9] Validate pBox dimensions with LockBox
2024-10-27 12:36:33 +01:00
WinterSnowfall
a0d48cd2a2
[d3d9] Adjust pLockedRect/pLockedBox clearing and return behavior
2024-10-27 12:36:33 +01:00
WinterSnowfall
63d9affdcb
[d3d9] Add volume texture creation and locking validations
2024-10-27 12:36:33 +01:00
WinterSnowfall
a323abe085
[d3d9] Validate alignment for block aligned formats
2024-10-27 12:36:33 +01:00
WinterSnowfall
678ccc721d
[d3d9] Validate pRect dimensions with LockRect
2024-10-27 12:36:33 +01:00
Philip Rebohle
80fbaed291
Revert "[d3d11] Use existing MD5 hash to look up shader objects"
...
This reverts commit 800f71c4f5
.
We can't do this without breaking fossilize DBs because we compile the
SHA1 hash into the shader binary.
2024-10-27 12:53:11 +01:00
Philip Rebohle
4709d429ed
[dxbc] Fix EvalSnapped offset interpretation
2024-10-27 12:52:15 +01:00