radeonsi: emit param exports after position exports

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
Marek Olšák 2017-07-05 00:24:11 +02:00
parent 9d9ffc8475
commit 93391ac478
1 changed files with 3 additions and 3 deletions

View File

@ -2348,9 +2348,6 @@ static void si_llvm_export_vs(struct lp_build_tgsi_context *bld_base,
}
}
/* Build parameter exports. */
si_build_param_exports(ctx, outputs, noutput);
/* We need to add the position output manually if it's missing. */
if (!pos_args[0].out[0]) {
pos_args[0].enabled_channels = 0xf; /* writemask */
@ -2449,6 +2446,9 @@ static void si_llvm_export_vs(struct lp_build_tgsi_context *bld_base,
ac_build_export(&ctx->ac, &pos_args[i]);
}
/* Build parameter exports. */
si_build_param_exports(ctx, outputs, noutput);
}
/**