python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / misc / dxvk / darwin-dxvk-compat.patch
blob99833a020cda51b7b1f4ad61fb58e258b80c5e06
1 diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp
2 index 09f3559a..215787f9 100644
3 --- a/src/d3d11/d3d11_device.cpp
4 +++ b/src/d3d11/d3d11_device.cpp
5 @@ -801,8 +801,12 @@ namespace dxvk {
6 InitReturnPtr(ppGeometryShader);
7 D3D11CommonShader module;
9 - if (!m_dxvkDevice->features().extTransformFeedback.transformFeedback)
10 - return DXGI_ERROR_INVALID_CALL;
11 + if (!m_dxvkDevice->features().extTransformFeedback.transformFeedback) {
12 + Logger::err(
13 + "D3D11: CreateGeometryShaderWithStreamOutput:"
14 + "\n Transform feedback not supported by device");
15 + return S_OK;
16 + }
18 // Zero-init some counterss so that we can increment
19 // them while walking over the stream output entries
20 @@ -1920,7 +1924,7 @@ namespace dxvk {
21 DxvkDeviceFeatures supported = adapter->features();
22 DxvkDeviceFeatures enabled = {};
24 - enabled.core.features.geometryShader = VK_TRUE;
25 + enabled.core.features.geometryShader = supported.core.features.geometryShader;
26 enabled.core.features.robustBufferAccess = VK_TRUE;
27 enabled.core.features.shaderStorageImageWriteWithoutFormat = VK_TRUE;
28 enabled.core.features.depthBounds = supported.core.features.depthBounds;
29 @@ -1951,7 +1955,7 @@ namespace dxvk {
30 enabled.core.features.sampleRateShading = VK_TRUE;
31 enabled.core.features.samplerAnisotropy = supported.core.features.samplerAnisotropy;
32 enabled.core.features.shaderClipDistance = VK_TRUE;
33 - enabled.core.features.shaderCullDistance = VK_TRUE;
34 + enabled.core.features.shaderCullDistance = supported.core.features.shaderCullDistance;
35 enabled.core.features.textureCompressionBC = VK_TRUE;
36 enabled.extDepthClipEnable.depthClipEnable = supported.extDepthClipEnable.depthClipEnable;
37 enabled.extHostQueryReset.hostQueryReset = VK_TRUE;
38 @@ -1971,8 +1975,8 @@ namespace dxvk {
39 enabled.core.features.logicOp = supported.core.features.logicOp;
40 enabled.core.features.shaderImageGatherExtended = VK_TRUE;
41 enabled.core.features.variableMultisampleRate = supported.core.features.variableMultisampleRate;
42 - enabled.extTransformFeedback.transformFeedback = VK_TRUE;
43 - enabled.extTransformFeedback.geometryStreams = VK_TRUE;
44 + enabled.extTransformFeedback.transformFeedback = supported.extTransformFeedback.transformFeedback;
45 + enabled.extTransformFeedback.geometryStreams = supported.extTransformFeedback.geometryStreams;
48 if (featureLevel >= D3D_FEATURE_LEVEL_10_1) {