[Mesa-dev] [PATCH 3/7] ac/nir: remove set but unused export_mask

Samuel Pitoiset samuel.pitoiset at gmail.com
Thu Feb 8 13:56:44 UTC 2018


Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/amd/common/ac_nir_to_llvm.c | 1 -
 src/amd/common/ac_nir_to_llvm.h | 1 -
 2 files changed, 2 deletions(-)

diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 9aa439a4ca..aa7503136c 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -6019,7 +6019,6 @@ handle_vs_outputs_post(struct nir_to_llvm_context *ctx,
 			outinfo->vs_output_param_offset[VARYING_SLOT_PRIMITIVE_ID] = param_count;
 			param_count++;
 		} else if (i >= VARYING_SLOT_VAR0) {
-			outinfo->export_mask |= 1u << (i - VARYING_SLOT_VAR0);
 			target = V_008DFC_SQ_EXP_PARAM + param_count;
 			outinfo->vs_output_param_offset[i] = param_count;
 			param_count++;
diff --git a/src/amd/common/ac_nir_to_llvm.h b/src/amd/common/ac_nir_to_llvm.h
index 023200ace8..9332531ce3 100644
--- a/src/amd/common/ac_nir_to_llvm.h
+++ b/src/amd/common/ac_nir_to_llvm.h
@@ -150,7 +150,6 @@ struct ac_vs_output_info {
 	bool writes_layer;
 	bool writes_viewport_index;
 	bool export_prim_id;
-	uint32_t export_mask;
 	unsigned pos_exports;
 };
 
-- 
2.16.1



More information about the mesa-dev mailing list