summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2018-02-08 14:56:43 +0100
committerSamuel Pitoiset <[email protected]>2018-02-08 22:14:22 +0100
commit724136d5901e887d38079e28acf07f1348d123c5 (patch)
tree2f807ca1e2a5d2dcf497eef7c149a8a7f60e8e1c /src/amd
parentc63d8d02844934af3dc2a4807898a0c7c2062929 (diff)
ac/nir: remove dead code in handle_vs_outputs_post()
The memcpy can't be reached because the condition is always false. Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/common/ac_nir_to_llvm.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/amd/common/ac_nir_to_llvm.c b/src/amd/common/ac_nir_to_llvm.c
index 62de7e3d018..9aa439a4cab 100644
--- a/src/amd/common/ac_nir_to_llvm.c
+++ b/src/amd/common/ac_nir_to_llvm.c
@@ -6027,14 +6027,7 @@ handle_vs_outputs_post(struct nir_to_llvm_context *ctx,
continue;
si_llvm_init_export_args(ctx, values, target, &args);
-
- if (target >= V_008DFC_SQ_EXP_POS &&
- target <= (V_008DFC_SQ_EXP_POS + 3)) {
- memcpy(&pos_args[target - V_008DFC_SQ_EXP_POS],
- &args, sizeof(args));
- } else {
- ac_build_export(&ctx->ac, &args);
- }
+ ac_build_export(&ctx->ac, &args);
}
if (export_prim_id) {