Mesa (master): ac/nir: remove another unused variable

Grazvydas Ignotas notaz at kemper.freedesktop.org
Wed Jun 7 21:03:32 UTC 2017


Module: Mesa
Branch: master
Commit: 19f6cc3cbadfc89b7eba2f9d0b70bafac5b847e3
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=19f6cc3cbadfc89b7eba2f9d0b70bafac5b847e3

Author: Grazvydas Ignotas <notasas at gmail.com>
Date:   Thu Jun  8 00:00:02 2017 +0300

ac/nir: remove another unused variable

Declared by each loop already.
Trivial.

Signed-off-by: Grazvydas Ignotas <notasas at gmail.com>

---

 src/amd/common/ac_nir_to_llvm.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 42be6de99c..49117d21bd 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -708,7 +708,6 @@ static void allocate_user_sgprs(struct nir_to_llvm_context *ctx,
 
 static void create_function(struct nir_to_llvm_context *ctx)
 {
-	unsigned i;
 	unsigned num_sets = ctx->options->layout ? ctx->options->layout->num_sets : 0;
 	uint8_t user_sgpr_idx;
 	struct user_sgpr_info user_sgpr_info;




More information about the mesa-commit mailing list