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:
Marek Olšák 2021-05-31 19:36:53 -04:00
parent 3cde2f96f9
commit 848dbe9ff7

View file

@ -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;