mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 13:58:04 +02:00
etnaviv: 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> Reviewed-by: Lucas Stach <l.stach@pengutronix.de> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10990>
This commit is contained in:
parent
1560f24da5
commit
b92a6edf82
1 changed files with 2 additions and 2 deletions
|
|
@ -558,8 +558,8 @@ etna_screen_is_format_supported(struct pipe_screen *pscreen,
|
|||
|
||||
if (usage & PIPE_BIND_INDEX_BUFFER) {
|
||||
/* must be supported index format */
|
||||
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 &&
|
||||
VIV_FEATURE(screen, chipFeatures, 32_BIT_INDICES))) {
|
||||
allowed |= PIPE_BIND_INDEX_BUFFER;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue