vkd3d: Implement support for D3D12_FEATURE_CROSS_NODE.

Signed-off-by: Conor McCarthy <conor.mccarthy.444@gmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Conor McCarthy 2020-05-25 20:07:10 +04:30 committed by Alexandre Julliard
parent 0a6415d677
commit d5ad90a81e
2 changed files with 25 additions and 0 deletions

View File

@ -1727,6 +1727,12 @@ typedef struct D3D12_FEATURE_DATA_SERIALIZATION
D3D12_HEAP_SERIALIZATION_TIER HeapSerializationTier;
} D3D12_FEATURE_DATA_SERIALIZATION;
typedef struct D3D12_FEATURE_DATA_CROSS_NODE
{
D3D12_CROSS_NODE_SHARING_TIER SharingTier;
BOOL AtomicShaderInstructions;
} D3D12_FEATURE_DATA_CROSS_NODE;
typedef enum D3D12_FEATURE
{
D3D12_FEATURE_D3D12_OPTIONS = 0,
@ -1747,6 +1753,7 @@ typedef enum D3D12_FEATURE
D3D12_FEATURE_EXISTING_HEAPS = 22,
D3D12_FEATURE_D3D12_OPTIONS4 = 23,
D3D12_FEATURE_SERIALIZATION = 24,
D3D12_FEATURE_CROSS_NODE = 25,
} D3D12_FEATURE;
typedef struct D3D12_MEMCPY_DEST

View File

@ -2931,6 +2931,24 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device *
return S_OK;
}
case D3D12_FEATURE_CROSS_NODE:
{
D3D12_FEATURE_DATA_CROSS_NODE *data = feature_data;
if (feature_data_size != sizeof(*data))
{
WARN("Invalid size %u.\n", feature_data_size);
return E_INVALIDARG;
}
data->SharingTier = device->feature_options.CrossNodeSharingTier;
data->AtomicShaderInstructions = FALSE;
TRACE("Cross node sharing tier %#x.\n", data->SharingTier);
TRACE("Cross node shader atomics %#x.\n", data->AtomicShaderInstructions);
return S_OK;
}
default:
FIXME("Unhandled feature %#x.\n", feature);
return E_NOTIMPL;