r600: don't set an index_bias for indirect draw calls
authorGert Wollny <gert.wollny@collabora.com>
Sun, 28 Mar 2021 08:27:20 +0000 (10:27 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 22 Apr 2021 18:44:01 +0000 (18:44 +0000)
commit0cae8d372e644a1d89ec5685781435159ee2d285
tree8d1e41e56ca05579e9f87558b93c804de3d608aa
parent0934467fd91b7c29da171902b7f0eef6baee4ca5
r600: don't set an index_bias for indirect draw calls

The bug #4657 mixed up which commit was actually responsible for
the regression, so re-apply this patch.

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"

Closes #4671

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10388>
src/gallium/drivers/r600/r600_state_common.c