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>
(cherry picked from commit 1b5851fadb)
This commit is contained in:
Gert Wollny 2021-04-19 09:42:00 +02:00 committed by Eric Engestrom
parent 4a5f6581a6
commit 4a44e69ab1
2 changed files with 2 additions and 2 deletions

View file

@ -976,7 +976,7 @@
"description": "Revert \"r600: don't set an index_bias for indirect draw calls\"",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"master_sha": null,
"because_sha": "acdf1a123436cb3fa7d4bbc9cfbb9566c7693de4"
},

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. */