mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 07:48:07 +02:00
r300: explicitly advertise index buffer format support
Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11132>
This commit is contained in:
parent
cc99c1c762
commit
de9c66d749
1 changed files with 7 additions and 0 deletions
|
|
@ -652,6 +652,13 @@ static bool r300_is_format_supported(struct pipe_screen* screen,
|
|||
}
|
||||
}
|
||||
|
||||
if (usage & PIPE_BIND_INDEX_BUFFER) {
|
||||
if (format == PIPE_FORMAT_R8_UINT ||
|
||||
format == PIPE_FORMAT_R16_UINT ||
|
||||
format == PIPE_FORMAT_R32_UINT)
|
||||
retval |= PIPE_BIND_INDEX_BUFFER;
|
||||
}
|
||||
|
||||
return retval == usage;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue