diff options
author | Gert Wollny <gert.wollny@collabora.com> | 2021-04-19 09:42:00 +0200 |
---|---|---|
committer | Eric Engestrom <eric@engestrom.ch> | 2021-04-20 19:42:21 +0200 |
commit | 4a44e69ab1741caedda0c0f3a1c5dabd19260bae (patch) | |
tree | 38118f4d6e2f832d92fc737a2f4e4df42e75cc91 /src | |
parent | 4a5f6581a682a4cca08ca103097acabf68fbfa7d (diff) |
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 <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 1b5851fadb268c03fa607a7dd422c3399c9d4840)
Diffstat (limited to 'src')
-rw-r--r-- | src/gallium/drivers/r600/r600_state_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c index b1b7936859f..6624a2af25d 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. */ |