radeonsi: correct index_bias_varies usage

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12812>
This commit is contained in:
Marek Olšák 2021-08-10 19:39:04 -04:00 committed by Marge Bot
parent f734152b62
commit 9e994560ff

View file

@ -1258,7 +1258,7 @@ static void si_emit_draw_packets(struct si_context *sctx, const struct pipe_draw
sctx->last_drawid = drawid_base + num_draws - 1;
}
} else {
if (info->index_bias_varies) {
if (index_bias_varies) {
/* Only BaseVertex varies. */
for (unsigned i = 0; i < num_draws; i++) {
uint64_t va = index_va + draws[i].start * index_size;