[PATCH 2/2] d3d11: Report D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER.
Zebediah Figura
zfigura at codeweavers.com
Fri Dec 10 11:24:13 CST 2021
On 12/10/21 03:16, Henri Verbeet wrote:
> On Thu, 9 Dec 2021 at 20:14, Zebediah Figura <zfigura at codeweavers.com> wrote:
>> @@ -3833,6 +3833,10 @@ static HRESULT STDMETHODCALLTYPE d3d11_device_CheckFormatSupport(ID3D11Device2 *
>> | D3D11_FORMAT_SUPPORT_MULTISAMPLE_LOAD;
>> }
>>
>> + if (format == DXGI_FORMAT_R16_UINT
>> + || (format == DXGI_FORMAT_R32_UINT && feature_level >= D3D_FEATURE_LEVEL_9_2))
>> + *format_support |= D3D11_FORMAT_SUPPORT_IA_INDEX_BUFFER;
>> +
> It seems tempting to introduce something like
> WINED3DFMT_FLAG_INDEX_TYPE, or at least to support
> WINED3D_BIND_INDEX_BUFFER in wined3d_check_device_format().
Indeed, and I guess we should be validating those formats when creating
an index buffer.
More information about the wine-devel
mailing list