d3d11: Set more format support flags.

Wine-Bug: https://bugs.winehq.org/show_bug.cgi?id=47096
Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2019-05-04 13:00:35 +02:00 committed by Alexandre Julliard
parent daa9906cce
commit 995139bce8
1 changed files with 14 additions and 0 deletions

View File

@ -3344,6 +3344,20 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFormatSupport(ID3D11Device2 *
}
wined3d_mutex_unlock();
if (*format_support & (D3D11_FORMAT_SUPPORT_TEXTURE1D
| D3D11_FORMAT_SUPPORT_TEXTURE2D | D3D11_FORMAT_SUPPORT_TEXTURE3D))
{
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_LOAD;
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_SAMPLE;
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_GATHER;
if (*format_support & D3D11_FORMAT_SUPPORT_DEPTH_STENCIL)
{
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_SAMPLE_COMPARISON;
*format_support |= D3D11_FORMAT_SUPPORT_SHADER_GATHER_COMPARISON;
}
}
return S_OK;
}