Mesa (main): radeonsi: fix incorrect counting of compute_num_verts_rejected

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Sun Jun 20 05:43:00 UTC 2021


Module: Mesa
Branch: main
Commit: 848dbe9ff7bb696250dfb2e79f7dfd661cba69b5
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=848dbe9ff7bb696250dfb2e79f7dfd661cba69b5

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Mon May 31 19:36:53 2021 -0400

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 at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11486>

---

 src/gallium/drivers/radeonsi/si_state_draw.cpp | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/gallium/drivers/radeonsi/si_state_draw.cpp b/src/gallium/drivers/radeonsi/si_state_draw.cpp
index b7540bc0054..e127e1cdf5c 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.cpp
+++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp
@@ -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;



More information about the mesa-commit mailing list