mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 22:49:13 +02:00
panfrost: Don't calculate min/max indices on v9
On Valhall, we always* use memory-allocated IDVS, which does not require min/max indices. As such, we do not want to calculate min/max indices, as this is quite slow. Skip this step. * except for blit shaders, which don't use an index buffer anyway. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16867>
This commit is contained in:
parent
ca6d06fa91
commit
c87629771d
1 changed files with 3 additions and 1 deletions
|
|
@ -3682,7 +3682,9 @@ panfrost_direct_draw(struct panfrost_batch *batch,
|
|||
unsigned min_index = 0, max_index = 0;
|
||||
mali_ptr indices = 0;
|
||||
|
||||
if (info->index_size) {
|
||||
if (info->index_size && PAN_ARCH >= 9) {
|
||||
indices = panfrost_get_index_buffer(batch, info, draw);
|
||||
} else if (info->index_size) {
|
||||
indices = panfrost_get_index_buffer_bounded(batch, info, draw,
|
||||
&min_index,
|
||||
&max_index);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue