radeonsi: explicitly return support for all index buffer formats
this should not change current behavior Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10914>
This commit is contained in:
parent
324dd35d7c
commit
f1ba85995c
|
@ -2232,6 +2232,13 @@ static bool si_is_format_supported(struct pipe_screen *screen, enum pipe_format
|
|||
retval |= si_is_vertex_format_supported(screen, format, PIPE_BIND_VERTEX_BUFFER);
|
||||
}
|
||||
|
||||
if (usage & PIPE_BIND_INDEX_BUFFER) {
|
||||
if (format == PIPE_FORMAT_I8_UINT ||
|
||||
format == PIPE_FORMAT_I16_UINT ||
|
||||
format == PIPE_FORMAT_I32_UINT)
|
||||
retval |= PIPE_BIND_INDEX_BUFFER;
|
||||
}
|
||||
|
||||
if ((usage & PIPE_BIND_LINEAR) && !util_format_is_compressed(format) &&
|
||||
!(usage & PIPE_BIND_DEPTH_STENCIL))
|
||||
retval |= PIPE_BIND_LINEAR;
|
||||
|
|
Loading…
Reference in New Issue