Module: vkd3d Branch: master Commit: 8ea67b0ac61b0122826ff9f61b34fc20b3ead7ff URL: https://gitlab.winehq.org/wine/vkd3d/-/commit/8ea67b0ac61b0122826ff9f61b34fc...
Author: Conor McCarthy cmccarthy@codeweavers.com Date: Wed Jan 31 17:09:59 2024 +1000
vkd3d: Handle D3D12_FEATURE_D3D12_OPTIONS8 in CheckFeatureSupport().
---
libs/vkd3d/device.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/libs/vkd3d/device.c b/libs/vkd3d/device.c index 299ecd6d..b1c07eb2 100644 --- a/libs/vkd3d/device.c +++ b/libs/vkd3d/device.c @@ -3391,6 +3391,22 @@ static HRESULT STDMETHODCALLTYPE d3d12_device_CheckFeatureSupport(ID3D12Device7 return S_OK; }
+ case D3D12_FEATURE_D3D12_OPTIONS8: + { + D3D12_FEATURE_DATA_D3D12_OPTIONS8 *data = feature_data; + + if (feature_data_size != sizeof(*data)) + { + WARN("Invalid size %u.\n", feature_data_size); + return E_INVALIDARG; + } + + data->UnalignedBlockTexturesSupported = FALSE; + + TRACE("Unaligned block texture support %#x.\n", data->UnalignedBlockTexturesSupported); + return S_OK; + } + default: FIXME("Unhandled feature %#x.\n", feature); return E_NOTIMPL;