si: Use Rn_UINT instead of In_UINT for index buffers
Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10990>
This commit is contained in:

committed by
Marge Bot

parent
0790bc41ed
commit
a86deb1e72
@@ -2233,9 +2233,9 @@ static bool si_is_format_supported(struct pipe_screen *screen, enum pipe_format
|
||||
}
|
||||
|
||||
if (usage & PIPE_BIND_INDEX_BUFFER) {
|
||||
if (format == PIPE_FORMAT_I8_UINT ||
|
||||
format == PIPE_FORMAT_I16_UINT ||
|
||||
format == PIPE_FORMAT_I32_UINT)
|
||||
if (format == PIPE_FORMAT_R8_UINT ||
|
||||
format == PIPE_FORMAT_R16_UINT ||
|
||||
format == PIPE_FORMAT_R32_UINT)
|
||||
retval |= PIPE_BIND_INDEX_BUFFER;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user