aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-12-27 16:29:16 -0500
committerMarek Olšák <[email protected]>2020-01-08 15:48:35 -0500
commit4249a90f5d635e4bec636fc320e492bbebbcee68 (patch)
tree8b053644b4e508a166ef5ea09c1d63fa8470cdd6
parent186335d17d69c4a6b0ad69b82fe0744e4910645e (diff)
radeonsi: fix monolithic pixel shaders with two-sided colors and SampleMaskIn
They are never used except for testing AMD_DEBUG=mono. Reviewed-by: Pierre-Eric Pelloux-Prayer <[email protected]>
-rw-r--r--src/gallium/drivers/radeonsi/si_shader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c
index 65a070b4570..75c54a4b112 100644
--- a/src/gallium/drivers/radeonsi/si_shader.c
+++ b/src/gallium/drivers/radeonsi/si_shader.c
@@ -3716,12 +3716,12 @@ static void create_function(struct si_shader_context *ctx)
&ctx->args.frag_pos[2], SI_PARAM_POS_Z_FLOAT);
add_arg_checked(&ctx->args, AC_ARG_VGPR, 1, AC_ARG_FLOAT,
&ctx->args.frag_pos[3], SI_PARAM_POS_W_FLOAT);
+ shader->info.face_vgpr_index = ctx->args.num_vgprs_used;
add_arg_checked(&ctx->args, AC_ARG_VGPR, 1, AC_ARG_INT,
&ctx->args.front_face, SI_PARAM_FRONT_FACE);
- shader->info.face_vgpr_index = 20;
+ shader->info.ancillary_vgpr_index = ctx->args.num_vgprs_used;
add_arg_checked(&ctx->args, AC_ARG_VGPR, 1, AC_ARG_INT,
&ctx->args.ancillary, SI_PARAM_ANCILLARY);
- shader->info.ancillary_vgpr_index = 21;
add_arg_checked(&ctx->args, AC_ARG_VGPR, 1, AC_ARG_FLOAT,
&ctx->args.sample_coverage, SI_PARAM_SAMPLE_COVERAGE);
add_arg_checked(&ctx->args, AC_ARG_VGPR, 1, AC_ARG_INT,