Mesa (master): Revert "r600: don't set an index_bias for indirect draw calls"
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Mon Apr 19 08:15:49 UTC 2021
Module: Mesa
Branch: master
Commit: 1b5851fadb268c03fa607a7dd422c3399c9d4840
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1b5851fadb268c03fa607a7dd422c3399c9d4840
Author: Gert Wollny <gert.wollny at collabora.com>
Date: Mon Apr 19 09:42:00 2021 +0200
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 at collabora.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10311>
---
src/gallium/drivers/r600/r600_state_common.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gallium/drivers/r600/r600_state_common.c b/src/gallium/drivers/r600/r600_state_common.c
index 2ded6c82212..a2b7f8146bf 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. */
More information about the mesa-commit
mailing list