r600: index_bias should be forced to zero for all indirect draw calls
The previous fix0cae8d372eis the right way to proceed, but it should also apply when index_size is non-zero. This change was tested on palm and cayman. Here is the test fixed: spec/arb_multi_draw_indirect/arb_draw_elements_base_vertex-multidrawelements -indirect: fail pass Fixes:0cae8d372e("r600: don't set an index_bias for indirect draw calls") Signed-off-by: Patrick Lerda <patrick9876@free.fr> Reviewed-by: Gert Wollny <gert.wollny@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34726>
This commit is contained in:
@@ -2277,7 +2277,7 @@ static void r600_draw_vbo(struct pipe_context *ctx, const struct pipe_draw_info
|
||||
index_offset -= start_offset;
|
||||
has_user_indices = false;
|
||||
}
|
||||
index_bias = draws->index_bias;
|
||||
index_bias = unlikely(indirect) ? 0 : draws->index_bias;
|
||||
} else {
|
||||
index_bias = indirect ? 0 : draws[0].start;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user