mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 14:18:07 +02:00
virgl: use pipe_draw_info::restart_index only when primitive_restart is enabled
Closes #5651 Signed-off-by: Gert Wollny <gert.wollny@collabora.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Chia-I Wu <olvaffe@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10442>
This commit is contained in:
parent
a07ab4f914
commit
d42c9e4787
1 changed files with 1 additions and 1 deletions
|
|
@ -755,7 +755,7 @@ int virgl_encoder_draw_vbo(struct virgl_context *ctx,
|
|||
virgl_encoder_write_dword(ctx->cbuf, info->index_size ? info->index_bias : 0);
|
||||
virgl_encoder_write_dword(ctx->cbuf, info->start_instance);
|
||||
virgl_encoder_write_dword(ctx->cbuf, info->primitive_restart);
|
||||
virgl_encoder_write_dword(ctx->cbuf, info->restart_index);
|
||||
virgl_encoder_write_dword(ctx->cbuf, info->primitive_restart ? info->restart_index : 0);
|
||||
virgl_encoder_write_dword(ctx->cbuf, info->index_bounds_valid ? info->min_index : 0);
|
||||
virgl_encoder_write_dword(ctx->cbuf, info->index_bounds_valid ? info->max_index : ~0);
|
||||
if (indirect && indirect->count_from_stream_output)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue