diff options
author | Rob Clark <[email protected]> | 2019-08-05 08:35:10 -0700 |
---|---|---|
committer | Rob Clark <[email protected]> | 2019-08-13 08:08:07 -0700 |
commit | 5722149bf11d42dd2b5285ccc8a22e748a6b4196 (patch) | |
tree | 17071d257b10f255b282a393de94ec34773012db /src/freedreno | |
parent | 65ae86b85422ae0d41624dd56f935d85b0164a13 (diff) |
freedreno/ir3: drop unneeded ir3_ra() args
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/freedreno')
-rw-r--r-- | src/freedreno/ir3/ir3.h | 3 | ||||
-rw-r--r-- | src/freedreno/ir3/ir3_compiler_nir.c | 2 | ||||
-rw-r--r-- | src/freedreno/ir3/ir3_ra.c | 7 |
3 files changed, 3 insertions, 9 deletions
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; |