d3d12: Allow 8bit index buffer conversions by vbuf

Reviewed-by: Sil Vilerino <sivileri@microsoft.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14933>
This commit is contained in:
Jesse Natalie 2022-02-07 14:07:18 -08:00 committed by Marge Bot
parent 52766e020f
commit 60775780ae
1 changed files with 1 additions and 2 deletions

View File

@ -622,8 +622,7 @@ d3d12_is_format_supported(struct pipe_screen *pscreen,
return false;
if (bind & PIPE_BIND_INDEX_BUFFER) {
if (format != PIPE_FORMAT_R8_UINT &&
format != PIPE_FORMAT_R16_UINT &&
if (format != PIPE_FORMAT_R16_UINT &&
format != PIPE_FORMAT_R32_UINT)
return false;
}