From: Gert Wollny Date: Mon, 19 Apr 2021 07:42:00 +0000 (+0200) Subject: Revert "r600: don't set an index_bias for indirect draw calls" X-Git-Tag: upstream/21.2.3~4655 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b5851fadb268c03fa607a7dd422c3399c9d4840;p=platform%2Fupstream%2Fmesa.git Revert "r600: don't set an index_bias for indirect draw calls" This reverts commit acdf1a123436cb3fa7d4bbc9cfbb9566c7693de4. 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 Reviewed-by: Marek Olšák Part-of: --- diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index 2ded6c8..a2b7f81 100644 --- a/src/gallium/drivers/r600/r600_state_common.c +++ b/src/gallium/drivers/r600/r600_state_common.c @@ -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. */