mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 06:40:11 +01:00
radeonsi: fix incorrect counting of compute_num_verts_rejected
Both cases should subtract to undo what is done in the conditional. Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11486>
This commit is contained in:
parent
3cde2f96f9
commit
848dbe9ff7
1 changed files with 1 additions and 2 deletions
|
|
@ -1986,9 +1986,8 @@ static void si_draw_vbo(struct pipe_context *ctx,
|
|||
case SI_PRIM_DISCARD_DISABLED:
|
||||
break;
|
||||
case SI_PRIM_DISCARD_DRAW_SPLIT:
|
||||
sctx->compute_num_verts_rejected -= total_direct_count;
|
||||
FALLTHROUGH;
|
||||
case SI_PRIM_DISCARD_MULTI_DRAW_SPLIT:
|
||||
sctx->compute_num_verts_rejected -= total_direct_count;
|
||||
/* The multi draw was split into multiple ones and executed. Return. */
|
||||
DRAW_CLEANUP;
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue