Revert "r600: don't set an index_bias for indirect draw calls"
authorGert Wollny <gert.wollny@collabora.com>
Mon, 19 Apr 2021 07:42:00 +0000 (09:42 +0200)
committerGert Wollny <gert.wollny@collabora.com>
Mon, 19 Apr 2021 08:00:55 +0000 (10:00 +0200)
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>

src/gallium/drivers/r600/r600_state_common.c

index 2ded6c8..a2b7f81 100644 (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. */