2022-02-14 17:08:03 +01:00
|
|
|
diff --git a/src/d3d11/d3d11_device.cpp b/src/d3d11/d3d11_device.cpp
|
2022-06-01 22:18:19 +02:00
|
|
|
index 09f3559a..215787f9 100644
|
2022-02-14 17:08:03 +01:00
|
|
|
--- a/src/d3d11/d3d11_device.cpp
|
|
|
|
+++ b/src/d3d11/d3d11_device.cpp
|
2022-06-01 22:18:19 +02:00
|
|
|
@@ -801,8 +801,12 @@ namespace dxvk {
|
2022-02-14 17:08:03 +01:00
|
|
|
InitReturnPtr(ppGeometryShader);
|
|
|
|
D3D11CommonShader module;
|
2022-06-01 22:18:19 +02:00
|
|
|
|
2022-02-14 17:08:03 +01:00
|
|
|
- if (!m_dxvkDevice->features().extTransformFeedback.transformFeedback)
|
|
|
|
- return DXGI_ERROR_INVALID_CALL;
|
2022-06-01 22:18:19 +02:00
|
|
|
+ if (!m_dxvkDevice->features().extTransformFeedback.transformFeedback) {
|
|
|
|
+ Logger::err(
|
|
|
|
+ "D3D11: CreateGeometryShaderWithStreamOutput:"
|
|
|
|
+ "\n Transform feedback not supported by device");
|
|
|
|
+ return S_OK;
|
|
|
|
+ }
|
|
|
|
|
2022-02-14 17:08:03 +01:00
|
|
|
// Zero-init some counterss so that we can increment
|
|
|
|
// them while walking over the stream output entries
|
2022-06-01 22:18:19 +02:00
|
|
|
@@ -1920,7 +1924,7 @@ namespace dxvk {
|
|
|
|
DxvkDeviceFeatures supported = adapter->features();
|
|
|
|
DxvkDeviceFeatures enabled = {};
|
|
|
|
|
|
|
|
- enabled.core.features.geometryShader = VK_TRUE;
|
|
|
|
+ enabled.core.features.geometryShader = supported.core.features.geometryShader;
|
|
|
|
enabled.core.features.robustBufferAccess = VK_TRUE;
|
|
|
|
enabled.core.features.shaderStorageImageWriteWithoutFormat = VK_TRUE;
|
|
|
|
enabled.core.features.depthBounds = supported.core.features.depthBounds;
|
|
|
|
@@ -1951,7 +1955,7 @@ namespace dxvk {
|
|
|
|
enabled.core.features.sampleRateShading = VK_TRUE;
|
|
|
|
enabled.core.features.samplerAnisotropy = supported.core.features.samplerAnisotropy;
|
|
|
|
enabled.core.features.shaderClipDistance = VK_TRUE;
|
|
|
|
- enabled.core.features.shaderCullDistance = VK_TRUE;
|
|
|
|
+ enabled.core.features.shaderCullDistance = supported.core.features.shaderCullDistance;
|
|
|
|
enabled.core.features.textureCompressionBC = VK_TRUE;
|
|
|
|
enabled.extDepthClipEnable.depthClipEnable = supported.extDepthClipEnable.depthClipEnable;
|
|
|
|
enabled.extHostQueryReset.hostQueryReset = VK_TRUE;
|
|
|
|
@@ -1971,8 +1975,8 @@ namespace dxvk {
|
2022-02-14 17:08:03 +01:00
|
|
|
enabled.core.features.logicOp = supported.core.features.logicOp;
|
|
|
|
enabled.core.features.shaderImageGatherExtended = VK_TRUE;
|
|
|
|
enabled.core.features.variableMultisampleRate = supported.core.features.variableMultisampleRate;
|
|
|
|
- enabled.extTransformFeedback.transformFeedback = VK_TRUE;
|
|
|
|
- enabled.extTransformFeedback.geometryStreams = VK_TRUE;
|
2022-06-01 22:18:19 +02:00
|
|
|
+ enabled.extTransformFeedback.transformFeedback = supported.extTransformFeedback.transformFeedback;
|
|
|
|
+ enabled.extTransformFeedback.geometryStreams = supported.extTransformFeedback.geometryStreams;
|
2022-02-14 17:08:03 +01:00
|
|
|
}
|
2022-06-01 22:18:19 +02:00
|
|
|
|
2022-02-14 17:08:03 +01:00
|
|
|
if (featureLevel >= D3D_FEATURE_LEVEL_10_1) {
|