mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 20:18:12 +02:00
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:c6c532faa8"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> (cherry picked from commit0cae8d372e)
This commit is contained in:
parent
ac7b6c9dc8
commit
315df0a7d7
2 changed files with 2 additions and 2 deletions
|
|
@ -13,7 +13,7 @@
|
|||
"description": "r600: don't set an index_bias for indirect draw calls",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "c6c532faa8cf172715b38783ec7175b626a63944"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -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. */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue