freedreno/ir3: drop unneeded ir3_ra() args
Signed-off-by: Rob Clark <robdclark@chromium.org>
This commit is contained in:
parent
65ae86b854
commit
5722149bf1
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue