From: Rob Clark Date: Mon, 5 Aug 2019 15:35:10 +0000 (-0700) Subject: freedreno/ir3: drop unneeded ir3_ra() args X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5722149bf11d42dd2b5285ccc8a22e748a6b4196;p=mesa.git freedreno/ir3: drop unneeded ir3_ra() args Signed-off-by: Rob Clark --- diff --git a/src/freedreno/ir3/ir3.h b/src/freedreno/ir3/ir3.h index c0710af6281..cbbb9bb61b0 100644 --- a/src/freedreno/ir3/ir3.h +++ b/src/freedreno/ir3/ir3.h @@ -1081,8 +1081,7 @@ void ir3_a6xx_fixup_atomic_dests(struct ir3 *ir, struct ir3_shader_variant *so); /* register assignment: */ struct ir3_ra_reg_set * ir3_ra_alloc_reg_set(struct ir3_compiler *compiler); -int ir3_ra(struct ir3 *ir3, gl_shader_stage type, - bool frag_coord, bool frag_face); +int ir3_ra(struct ir3 *ir3); /* legalize: */ void ir3_legalize(struct ir3 *ir, bool *has_ssbo, bool *need_pixlod, int *max_bary); diff --git a/src/freedreno/ir3/ir3_compiler_nir.c b/src/freedreno/ir3/ir3_compiler_nir.c index d84c56b0195..dca55f33b38 100644 --- a/src/freedreno/ir3/ir3_compiler_nir.c +++ b/src/freedreno/ir3/ir3_compiler_nir.c @@ -2962,7 +2962,7 @@ ir3_compile_shader_nir(struct ir3_compiler *compiler, ir3_print(ir); } - ret = ir3_ra(ir, so->type, so->frag_coord, so->frag_face); + ret = ir3_ra(ir); if (ret) { DBG("RA failed!"); goto out; diff --git a/src/freedreno/ir3/ir3_ra.c b/src/freedreno/ir3/ir3_ra.c index 9e7d3c7db63..980cd62c48b 100644 --- a/src/freedreno/ir3/ir3_ra.c +++ b/src/freedreno/ir3/ir3_ra.c @@ -331,8 +331,6 @@ struct ir3_ra_instr_data { /* register-assign context, per-shader */ struct ir3_ra_ctx { struct ir3 *ir; - gl_shader_stage type; - bool frag_face; struct ir3_ra_reg_set *set; struct ra_graph *g; @@ -1142,13 +1140,10 @@ retry: return 0; } -int ir3_ra(struct ir3 *ir, gl_shader_stage type, - bool frag_coord, bool frag_face) +int ir3_ra(struct ir3 *ir) { struct ir3_ra_ctx ctx = { .ir = ir, - .type = type, - .frag_face = frag_face, .set = ir->compiler->set, }; int ret;