Philip Rebohle
f1b075c0f3
[dxvk] Add CS chunk pool
...
Reduces the number of dynamic memory allocations for CS chunks by
recycling them once they are no longer needed. Also fixes a potential
issue with chunks that are dispatched multiple times.
2018-08-27 16:07:38 +02:00
Philip Rebohle
b75b7d0999
[dxvk] Simplify discardBuffer access flags
...
Specifying both read and write access is unnecessary, as the dirty
check will always return true for writes when it would also return
true for reads.
2018-08-27 14:50:47 +02:00
Philip Rebohle
01cc49555a
[dxbc] End functions correctly even if last instruction is not 'ret'
...
Some DXBC shaders don't end in a return instruction, but rather implicitly
end when all branches end in a return instruction. Fixes an illegal shader
generated in Crysis 1.
2018-08-27 14:29:40 +02:00
Philip Rebohle
34152a01a5
[dxvk] Add device filter
...
When setting DXVK_FILTER_DEVICE_NAME, only devices with a
matching device name will be reported to the application.
2018-08-27 14:22:14 +02:00
Philip Rebohle
5f42950650
[dxgi] Don't use FIFO present mode if IMMEDIATE is not available
...
Might fix potential performance issues on Nvidia when VSYNC is disabled.
Based on RPCS3/rpcs3@25ec3789fe
2018-08-26 23:39:53 +02:00
Philip Rebohle
08a9963734
[dxvk] Fix clear compute shaders for 2D array views
...
The Z component is not part of the image extent. Fixes #598 .
2018-08-26 20:08:16 +02:00
Philip Rebohle
0704b044a9
[dxgi] Fix format parameter in CheckImageFormatSupport
2018-08-26 12:37:12 +02:00
Philip Rebohle
2bdd614d07
[dxgi] Log display mode changes
2018-08-26 12:37:12 +02:00
Nikolay Sivov
d464d11fbd
[d3d10] Fix resource type for buffers.
2018-08-26 12:16:09 +02:00
Philip Rebohle
73cbf5b352
[util] Limit device memory size to 4095 MB for Life is Feudal MMO
...
Reporting 4GB or more VRAM causes an integer overflow in this game.
Fixes #591 .
2018-08-25 01:23:22 +02:00
Philip Rebohle
57db0b60fb
[dxgi] Add option to limit reported device memory size
2018-08-25 01:22:19 +02:00
Joshua Ashton
48697346c0
[d3d10] Implement Get/SetTextFilterSize using the behaviour D3D10 exhibits ( #587 )
2018-08-22 01:32:59 +02:00
jacekcw
2ff614b241
[build] Use native Vulkan ABI for winelib builds ( #520 )
...
Allows 32-bit winelib builds to run.
2018-08-17 19:55:37 +02:00
Philip Rebohle
55632c6b61
[util] Add log message when loading a configuration file
2018-08-17 19:42:32 +02:00
Philip Rebohle
7fa6dddc9e
[dxgi] Remove dxgi.fakeDx10Support option
...
No longer needed because we have actual Dx10 support now.
2018-08-17 12:33:53 +02:00
Philip Rebohle
b51361eaa9
Revert "[dxbc] Work around OpControlBarrier issue on radv 18.2-git"
...
This reverts commit 9293acfeb561fced8e05e2d08e3bd70fb5de8fff.
This issue is caused by an LLVM bug, which now has a workaround in RADV:
https://cgit.freedesktop.org/mesa/mesa/commit/?id=71d5b2fbf83061a1319141d26942771e8c75ff2b
2018-08-17 11:50:36 +02:00
Philip Rebohle
f75e3ad13f
[d3d11] Fix silly GenerateMips bug
2018-08-16 00:57:16 +02:00
Philip Rebohle
c3c7a4172d
[d3d11] Fix interface query for ID3D11Predicate
2018-08-16 00:13:40 +02:00
Mikhail Paulyshka
2a96d717d3
[d3d11] fixed compilation with MinGW-headers 6.0.0 or greater
2018-08-15 22:02:39 +02:00
Mikhail Paulyshka
9cce41394b
[build] partially revert previous d3dcompiler related change
2018-08-15 21:59:44 +02:00
Philip Rebohle
e271bc490e
[d3d11] Enable ExtendedDoublesShaderInstructions
2018-08-15 20:12:41 +02:00
Philip Rebohle
e113392bb9
[dxbc] Implement DtoI, DtoU, ItoD and UtoD
2018-08-15 20:11:40 +02:00
Philip Rebohle
86fbba06be
[dxbc] Implement DDiv, DFma and DRcp
2018-08-15 20:11:40 +02:00
Philip Rebohle
fabcdbc3ae
[dxbc] Add definitions for extended double instructions
2018-08-15 20:11:34 +02:00
Philip Rebohle
0b1b898be4
[d3d11] Implement ID3D11DeviceContext1::ClearView
...
Required for Feature Level 11_1.
2018-08-15 19:03:26 +02:00
Philip Rebohle
f4b2c52816
[dxvk] Support render target views in ClearImageView
...
This way, we'll have two separate code paths, one for
storage images and one for render targets. We'll need
this for the implementation of ClearView.
2018-08-15 19:03:26 +02:00
Philip Rebohle
beedd39f7d
[dxvk] Accept VkClearValue in DxvkContext::clearImageView
2018-08-15 19:03:26 +02:00
Philip Rebohle
da21a6db7f
[d3d11] Silence warning about GenerateMips being called on buffers
2018-08-15 19:03:26 +02:00
Mikhail Paulyshka
3df708d500
[build] reduce the number of d3dcompiler versions
2018-08-15 13:17:16 +02:00
Philip Rebohle
e5eb155968
[d3d10] Add some range checks to resource binding functions
2018-08-14 19:37:23 +02:00
Mikhail Paulyshka
5e81b9c88b
[d3d10] added missing __stdcall
2018-08-14 18:48:55 +02:00
Philip Rebohle
dad015bd67
[d3d10] Fix crash in CreateDepthStencilView when pDesc is null
...
This is legal and we should just pass the null pointer to D3D11.
Should fix a crash in Stalker: Call of Pripyat.
2018-08-14 00:12:53 +02:00
Philip Rebohle
861165f32a
[meta] Fix formatting errors
...
Some filthy little tabs have somehow made
it into the world of spaces to wreak havoc.
2018-08-13 18:30:51 +02:00
Philip Rebohle
f011e78163
[d3d10] Implement D3D10ShaderReflection
...
This is a simple wrapper that uses D3D11ShaderReflection from the
d3dcompiler libs. The implementation is required to run Crysis.
2018-08-13 17:22:42 +02:00
Philip Rebohle
221165f02b
[d3d10] Implement more d3d10.dll functions using D3DCompiler
2018-08-13 17:22:42 +02:00
Philip Rebohle
5e11c8a8d1
[d3d10] Implement CheckFormatSupport
2018-08-13 17:22:42 +02:00
Philip Rebohle
589bc50842
[d3d10] Implement (VS|GS|PS)(Set|Get)Shader
2018-08-13 17:22:42 +02:00
Philip Rebohle
e671692886
[d3d10] Implement D3D10Shader
2018-08-13 17:22:42 +02:00
Philip Rebohle
346c59bb62
[d3d10] Implement (Set|Get)Predication
2018-08-13 17:22:42 +02:00
Philip Rebohle
2af07c5faf
[d3d10] Implement D3D10Query
2018-08-13 17:22:42 +02:00
Philip Rebohle
2863a09c5d
[d3d10] Implement ClearRenderTargetView and ClearDepthStencilView
2018-08-13 17:22:42 +02:00
Philip Rebohle
f76ab6e3be
[d3d10] Implement OM(Set|Get)RenderTargets
2018-08-13 17:22:42 +02:00
Philip Rebohle
ae12fbd23c
[d3d10] Implement D3D10CreateDepthStencilView
2018-08-13 17:22:42 +02:00
Philip Rebohle
ea46a0340e
[d3d10] Implement D3D10RenderTargetView
2018-08-13 17:22:42 +02:00
Philip Rebohle
e0a27fd05e
[d3d10] Implement GenerateMips
2018-08-13 17:22:42 +02:00
Philip Rebohle
c41f380f3e
[d3d10] Implement (VS|GS|PS)(Set|Get)ShaderResources
2018-08-13 17:22:42 +02:00
Philip Rebohle
0052ff236b
[d3d10] Implement D3D10ShaderResourceView
2018-08-13 17:22:42 +02:00
Philip Rebohle
04fa062eba
[d3d10] Add GetD3D10ResourceFromView and GetD3D10Resource helpers
2018-08-13 17:22:42 +02:00
Philip Rebohle
ccab8a56ee
[d3d10] Implement RS(Set|Get)State
2018-08-13 17:22:42 +02:00
Philip Rebohle
ddb2a7bd59
[d3d10] Implement D3D10RasterizerState
2018-08-13 17:22:42 +02:00