summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert Wollny <gert.wollny@collabora.com>2021-03-28 10:27:20 +0200
committerMarge Bot <eric+marge@anholt.net>2021-03-29 17:42:12 +0000
commitacdf1a123436cb3fa7d4bbc9cfbb9566c7693de4 (patch)
tree2e1c8c84c7063097ae404c312e0e82a5c153a19f
parent244048867757b93910387d5f2ccef91266c13166 (diff)
r600: don't set an index_bias for indirect draw calls
The indirect draw call already encodes the index bias so that no additional encoding in the hardware is needed in this case. This fixes a regression with a number of tests from dEQP-GLES31.functional.draw_indirect.random.* Fixes: c6c532faa8cf172715b38783ec7175b626a63944 "gallium/u_vbuf: use updated pipe_draw_start_count while using draw_vbo" Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9877>
-rw-r--r--src/gallium/drivers/r600/r600_state_common.c2
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 6624a2af25d..b1b7936859f 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 = draws[0].start;
+ index_bias = indirect ? 0 : draws[0].start;
}
/* Set the index offset and primitive restart. */