d3d11: Add support for D3D11_FEATURE_D3D11_OPTIONS1 in CheckFeatureSupport().

Signed-off-by: Alistair Leslie-Hughes <leslie_alistair@hotmail.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Alistair Leslie-Hughes 2018-04-10 14:33:42 +04:30 committed by Alexandre Julliard
parent d06740bde7
commit 076f542dc5
1 changed files with 17 additions and 0 deletions

View File

@ -3396,6 +3396,23 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFeatureSupport(ID3D11Device *
return S_OK;
}
case D3D11_FEATURE_D3D11_OPTIONS1:
{
D3D11_FEATURE_DATA_D3D11_OPTIONS1 *options = feature_support_data;
if (feature_support_data_size != sizeof(*options))
{
WARN("Invalid data size.\n");
return E_INVALIDARG;
}
FIXME("Returning fake Options1 support data.\n");
options->TiledResourcesTier = D3D11_TILED_RESOURCES_NOT_SUPPORTED;
options->MinMaxFiltering = FALSE;
options->ClearViewAlsoSupportsDepthOnlyFormats = FALSE;
options->MapOnDefaultBuffers = FALSE;
return S_OK;
}
default:
FIXME("Unhandled feature %#x.\n", feature);
return E_NOTIMPL;