r600: add an unlikely() to synchronize with the index_bias fix

Signed-off-by: Patrick Lerda <patrick9876@free.fr>
Reviewed-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34726>
This commit is contained in:
Patrick Lerda 2025-06-02 20:08:22 +02:00 committed by Marge Bot
parent a640b7233c
commit 922a0bdcd6

View file

@ -2279,7 +2279,7 @@ static void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info
}
index_bias = unlikely(indirect) ? 0 : draws->index_bias;
} else {
index_bias = indirect ? 0 : draws[0].start;
index_bias = unlikely(indirect) ? 0 : draws[0].start;
}
/* Set the index offset and primitive restart. */