Signed-off-by: Alistair Leslie-Hughes leslie_alistair@hotmail.com --- dlls/d3d11/device.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+)
diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c index d93f4ebe73..a06c843c90 100644 --- a/dlls/d3d11/device.c +++ b/dlls/d3d11/device.c @@ -3387,6 +3387,21 @@ 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; + } + 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;
On 6 April 2018 at 07:38, Alistair Leslie-Hughes leslie_alistair@hotmail.com wrote:
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;
}
options->TiledResourcesTier = D3D11_TILED_RESOURCES_NOT_SUPPORTED;
options->MinMaxFiltering = FALSE;
options->ClearViewAlsoSupportsDepthOnlyFormats = FALSE;
options->MapOnDefaultBuffers = FALSE;
return S_OK;
}
I think ideally we'd get this kind of information from wined3d, but if we're going to hardcode something, I think there should at least be a FIXME.