summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_shader.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-07-05 00:24:11 +0200
committerMarek Olšák <[email protected]>2017-07-17 10:50:39 -0400
commit93391ac47895f2235a6102e7a923dfea3fb44fc4 (patch)
treeb9714e5869b2c078cac4d1f33bc81bcff462e0ae /src/gallium/drivers/radeonsi/si_shader.c
parent9d9ffc8475ad0f9cbc06dabf770737205c953e93 (diff)
radeonsi: emit param exports after position exports
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_shader.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index ae9f4033a98..a5baf71b0d0 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -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);
}
/**