Revert "r600: don't set an index_bias for indirect draw calls"

This reverts commit acdf1a1234.

While this commit fixed the gles CTS regressions, it introduced
regressions that made the driver unusable, hence the revert.

Closes #4657

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10311>
This commit is contained in:
Gert Wollny 2021-04-19 09:42:00 +02:00
parent f90d625841
commit 1b5851fadb

View file

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