Commit c8762977 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig Committed by Marge Bot
Browse files

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's avatarAlyssa Rosenzweig <alyssa@collabora.com>
Part-of: <!16867>
parent ca6d06fa
Pipeline #605482 waiting for manual action with stages
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment