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:
Alyssa Rosenzweig 2022-06-04 09:58:40 -04:00 committed by Marge Bot
parent ca6d06fa91
commit c87629771d

View file

@ -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);