1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-12-03 04:24:11 +01:00
Commit Graph

5963 Commits

Author SHA1 Message Date
Blisto91
2dadad57f0 [util] Hide amd for GTA The Definitive Edition trilogy
Crashes because of static ags on amd systems which report HDR support.
2024-11-13 12:17:43 +01:00
Randy Eckenrode
8dc1fe1262 [build] Fix native GLFW build
Fixes an undefined reference to `glfwGetWindowAttrib` when building with
GLFW support enabled.
2024-11-11 22:33:52 +01:00
Philip Rebohle
56b7c8cd41 [meta] Release 2.5 2024-11-11 15:27:07 +01:00
Philip Rebohle
757081a55a [hud] Pre-multiply alpha before color space conversion
Derp.
2024-11-11 12:53:52 +01:00
Philip Rebohle
3756e83ae4 [dxso] Don't emit FOrdNotEqual 2024-11-11 12:33:40 +01:00
Philip Rebohle
6610f4237f [dxso] Remove OpCross path for cross products 2024-11-11 12:33:40 +01:00
Philip Rebohle
bca3e8db5a [dxso] Explicitly emit long dot products
Potentially avoids vertex shader bugs if a game expects dot product and
a chain of mad instructions to return the same result.
2024-11-11 12:33:40 +01:00
Philip Rebohle
a71603a2a4 [dxso] Fix lrp instruction
Games expect this to be equivalent to add -> mad, but since we changed
mad to emit mul + add, this is no longer the case. Also remove OpFMix
path.
2024-11-11 12:33:40 +01:00
Philip Rebohle
f05b104310 [dxvk] Disable defragmentation on ANV 2024-11-11 12:33:20 +01:00
Philip Rebohle
d9d99445bd [hud] Properly pre-multiply graphs and bars with alpha
Oversight, our blend mode relies on pre-multiplied alpha.
2024-11-11 12:01:31 +01:00
Philip Rebohle
125f0acefd [util] Hide integrated graphics for Diablo 4 2024-11-10 21:39:07 +01:00
Philip Rebohle
c745136f67 [dxgi] Fix global variable declarations 2024-11-10 18:18:26 +01:00
Blisto91
8bca36460a [dxvk] Log build target and compiler used 2024-11-10 14:33:14 +01:00
Philip Rebohle
9b272fb3f6 [dxvk] Enable and use VK_EXT_pageable_device_local_memory if supported 2024-11-08 17:25:54 +01:00
Philip Rebohle
c5bc4d1bac [dxvk] Order allocations to relocate by offset
Potentially improves the situation where a chunk cannot be relocated
in its entirely by freeing up a larger block of memory at the end of
the chunk, which may be enough to service a subsequent defrag attempt
of a different chunk.
2024-11-08 13:39:47 +01:00
Philip Rebohle
8584fc7722 [d3d11] Simplify mapped resource tracking on deferred context 2024-11-08 11:19:21 +01:00
Philip Rebohle
bdd4956dd3 [d3d11] Properly validate map parameters for images 2024-11-08 11:19:21 +01:00
Philip Rebohle
2db10b0af8 [d3d11] Use D3D11_COMMON_TEXTURE_MAP_MODE_DYNAMIC where possible 2024-11-08 11:19:21 +01:00
Philip Rebohle
da406133f1 [d3d11] Add D3D11_COMMON_TEXTURE_MAP_MODE_DYNAMIC 2024-11-08 11:19:21 +01:00
Philip Rebohle
1d2d05dde0 [d3d11] Clean up some texture map mode checks 2024-11-08 11:19:21 +01:00
Philip Rebohle
43e636cf42 [dxvk] Rearrange DxvkBufferCreateInfo 2024-11-08 11:19:21 +01:00
Philip Rebohle
bd6b7aedc1 [d3d11] Clean up image staging buffer creation 2024-11-08 11:19:21 +01:00
Philip Rebohle
9e316b8c71 [d3d11] Disallow MAP_WRITE_NO_OVERWRITE on dynamic images
D3D11 explicitly bans this, so we shouldn't pretend to support it.
2024-11-08 11:19:21 +01:00
Philip Rebohle
1dfb869df2 [d3d11] Tie mapped image memory type to map mode selection
Allows us to keep video images in system memory in order to avoid
wasting precious HVV.
2024-11-08 11:19:21 +01:00
Philip Rebohle
ae67c026aa [d3d11] Implement image MAP_WRITE_DISCARD on immediate context 2024-11-08 11:19:21 +01:00
Philip Rebohle
789e8db699 [d3d11] Fix MAP_WRITE_DISCARD for mapped images on deferred contexts
The previous implementation was straight-up broken since it would use the
wrong subresource layout. We can discard the image now so let's just do that.
2024-11-08 11:19:21 +01:00
Philip Rebohle
30f2a8c26b [d3d11] Add methods to discard direct-mapped images 2024-11-08 11:19:21 +01:00
Philip Rebohle
64e32d4ee1 [d3d11] Clean up InitHostVisibleTexture
Also fixes a potential crash if pSysMem of any initial data structs is null.
2024-11-08 11:19:21 +01:00
Philip Rebohle
f5241d187c [d3d11] Use GetMapPtr when initializing mapped image buffer 2024-11-08 11:19:21 +01:00
Philip Rebohle
1832332d6d [d3d11] Add GetMapPtr method to D3D11CommonTexture
Fixes a bug in Read/WriteSubresource where discards result in the wrong
pointer being passed to the app.
2024-11-08 11:19:21 +01:00
Philip Rebohle
81bdf191cb [dxvk] Remove old querySubresourceLayout method 2024-11-08 11:19:21 +01:00
Philip Rebohle
c5d776c3b8 [d3d11] Cache subresource layouts for mapped images
Also adjust the way we expose certain direct-mapped images in order
to be as consistent with staging buffer behaviour as possible.
2024-11-08 11:19:21 +01:00
Philip Rebohle
a5e8a42288 [d3d11] Properly initialize optons struct
No bug, but it's good practice either way.
2024-11-08 11:19:21 +01:00
Philip Rebohle
bdf4cb765a [d3d11] Remove d3d11.maxDynamicImageBufferSize option 2024-11-08 11:19:21 +01:00
Philip Rebohle
116d488faa [d3d11] Use direct mapping for images in more situations 2024-11-08 11:19:21 +01:00
Philip Rebohle
35d94ae057 [d3d11] Improve memory type selection for direct-mapped images 2024-11-08 11:19:21 +01:00
Philip Rebohle
0896df7b9a [dxvk] Add back-end function to compute linear image subresource layouts 2024-11-08 11:19:21 +01:00
Robin Kertels
62970d24c3 [d3d9] Enable strict float emulation by default on new Nvidia drivers 2024-11-07 17:34:45 +01:00
WinterSnowfall
eb98047412 [d3d9] Skip some validations when hDeviceWindow is NULL 2024-11-07 01:10:05 +01:00
Philip Rebohle
c968ba624b [dxvk] Only force late clears on older Nvidia drivers
Disables the workaround introduced in 00872e9e4f
on drivers that were not affected by the bug.
2024-11-03 17:13:16 +01:00
WinterSnowfall
64b35c5c0f [d3d9] Early return D3D_OK on present with a NULL m_window 2024-11-03 13:35:55 +01:00
Philip Rebohle
3c88591326 [d3d9] Fix various other ColorFill edge cases
Fixes all remaining validation in wine's color_fill_test. Some failed
tests remain because apparently we do not validate resource txpes properly.
2024-11-03 12:41:35 +01:00
Philip Rebohle
ccd19ce90b [d3d9] Properly handle block-compressed formats in ColorFill 2024-11-03 12:41:35 +01:00
Philip Rebohle
c4421348cf [d3d9] Fix image layout for transfer-only images 2024-11-03 12:41:35 +01:00
Philip Rebohle
cde8661bc1 [dxvk] Add helper to compute clear values for compressed formats 2024-11-03 12:41:35 +01:00
Philip Rebohle
778b04f39a [d3d9] Properly destroy format conversion set and pipeline layouts 2024-11-03 12:41:35 +01:00
Philip Rebohle
54c45ef3fa [dxvk] Fix when tracking happens in resource relocation
Invalidation now resets tracking, so it is possible that after recreating
an image with different usage we'd use it on the wrong command buffer for
certain functions.
2024-11-03 12:25:53 +01:00
Philip Rebohle
c764dd97a6 [util] Fix __wine_dbg_output crash with very long lines
This sometimes happens with Vulkan validation layers enabled.
2024-11-03 12:02:03 +01:00
Philip Rebohle
f3c320b490 [dxvk] Fix broken sync in injectCsChunk 2024-11-02 20:56:02 +01:00
WinterSnowfall
b38c6b4dc2 [d3d8] Adjust ValidatePixel/VertexShader error return 2024-11-02 18:07:33 +01:00