Mesa (main): radeonsi: remove duplicate partial_count variable
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Fri Oct 8 02:52:38 UTC 2021
Module: Mesa
Branch: main
Commit: 65a8b50b7ad9b683553dff86d8b647bb02d354b8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=65a8b50b7ad9b683553dff86d8b647bb02d354b8
Author: Marek Olšák <marek.olsak at amd.com>
Date: Wed Oct 6 16:26:40 2021 -0400
radeonsi: remove duplicate partial_count variable
"count" is computed identically.
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13235>
---
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 c6d37f541a3..2b07c897645 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.cpp
+++ b/src/gallium/drivers/radeonsi/si_state_draw.cpp
@@ -1841,11 +1841,10 @@ static bool si_upload_and_prefetch_VB_descriptors(struct si_context *sctx,
}
if (IS_DRAW_VERTEX_STATE) {
- unsigned partial_count = bitcount_asm<POPCNT>(partial_velem_mask);
unsigned i = 0;
if (num_vbos_in_user_sgprs) {
- unsigned num_vb_sgprs = MIN2(partial_count, num_vbos_in_user_sgprs) * 4;
+ unsigned num_vb_sgprs = MIN2(count, num_vbos_in_user_sgprs) * 4;
radeon_begin(&sctx->gfx_cs);
radeon_set_sh_reg_seq(sh_base + SI_SGPR_VS_VB_DESCRIPTOR_FIRST * 4, num_vb_sgprs);
More information about the mesa-commit
mailing list